DrawText() Problem when converting NT6.5 to NT7 - futures io
futures io futures trading



DrawText() Problem when converting NT6.5 to NT7


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one qzhang119 with 3 posts (0 thanks)
    2. looks_two Fat Tails with 2 posts (2 thanks)
    3. looks_3 Quick Summary with 1 posts (0 thanks)
    4. looks_4 bukkan with 1 posts (1 thanks)
    1. trending_up 1,310 views
    2. thumb_up 3 thanks given
    3. group 3 followers
    1. forum 6 posts
    2. attach_file 1 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 125,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

(If you already have an account, login at the top of the page)

 
Search this Thread
 

DrawText() Problem when converting NT6.5 to NT7

(login for full post details)
  #1 (permalink)
HC, NJ
 
Experience: Beginner
Platform: NinjaTrader
Trading: Forex
 
Posts: 9 since Aug 2012
Thanks: 5 given, 0 received

Hi All,

I am currently converting an indicator from NT6.5 into NT7, after compile I changed DrawText() in the program, successfully compiled.( Add intypixeloffset as 0)

But there is nothing displayed in the panel.

So, I checked the Log, found that:

[COLOR="rgb(154, 205, 50)"]9/22/2012 5:57:08 PM Default Failed to call method 'Initialize' for indicator 'GbDivergence2': 'BarsInProgress' property can't be accessed from within 'Initialize' method[/COLOR]

Is that means there are other errors should be changed in the 'Initialize' and 'BarsInProgress'?

Thanks.

Started this thread Reply With Quote

Can you help answer these questions
from other members on futures io?
Work with historical tcks data on MUltichart NET PowerLa …
MultiCharts
ZigZag with Depth and Backstep
EasyLanguage Programming
What blockvolume is visible? - order processing
NinjaTrader
Help Needed: TOS Options Chain IV & IMPL MOVE Calcul …
ThinkOrSwim
Neurological explanations for trading Success
Psychology and Money Management
 
Best Threads (Most Thanked)
in the last 7 days on futures io
Battlestations: Show us your trading desks!
137 thanks
Big Mike in Ecuador
34 thanks
Want your NinjaTrader indicator created, free?
32 thanks
Saturday Morning Market Replay!
20 thanks
Selling Options on Futures?
19 thanks
 
(login for full post details)
  #3 (permalink)
Market Wizard
Berlin, Europe
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,855 since Mar 2010
Thanks: 4,238 given, 26,731 received



qzhang119 View Post
Hi All,

I am currently converting an indicator from NT6.5 into NT7, after compile I changed DrawText() in the program, successfully compiled.( Add intypixeloffset as 0)

But there is nothing displayed in the panel.

So, I checked the Log, found that:

[COLOR="rgb(154, 205, 50)"]9/22/2012 5:57:08 PM Default Failed to call method 'Initialize' for indicator 'GbDivergence2': 'BarsInProgress' property can't be accessed from within 'Initialize' method[/COLOR]

Is that means there are other errors should be changed in the 'Initialize' and 'BarsInProgress'?

Thanks.


There is a thread dedicated to converting indicators from NT 6.5 to NT 7.0



Best you post the indicator there, and somebody will make it fit for NT 7.0.

To solve your problem you would probably need to transfer some of the code from the Initalize() section to OnStartUp() or OnBarUpdate(). It should not take more than a few minutes.

Reply With Quote
The following user says Thank You to Fat Tails for this post:
 
(login for full post details)
  #4 (permalink)
HC, NJ
 
Experience: Beginner
Platform: NinjaTrader
Trading: Forex
 
Posts: 9 since Aug 2012
Thanks: 5 given, 0 received

Hi fat tail,

I follows your instructions, tried to put some codes from Initialize into OnBarUpdate(), but nothing changed.

Could you please take a look at the indicator?

Thank you for your help.

-Q

Attached Files
Register to download File Type: zip GbDivergence.zip (9.4 KB, 16 views)
Started this thread Reply With Quote
 
(login for full post details)
  #5 (permalink)
Calcutta, India
 
Experience: Intermediate
Platform: ArthaChitra
 
Posts: 278 since Jun 2009
Thanks: 161 given, 269 received

The err is coming from this line of code in the initialize section of the code

 
Code
period = Bars.Period.Value.ToString();

Reply With Quote
The following user says Thank You to bukkan for this post:
 
(login for full post details)
  #6 (permalink)
HC, NJ
 
Experience: Beginner
Platform: NinjaTrader
Trading: Forex
 
Posts: 9 since Aug 2012
Thanks: 5 given, 0 received

Thank you, bukkan.

It works now. How do you find that part is the point? Did you use "Print" function? or Is there any knowledge I should obtained? I just want to learn more about troubleshooting.

Thanks again.

Regards,

-Q

Started this thread Reply With Quote
 
(login for full post details)
  #7 (permalink)
Market Wizard
Berlin, Europe
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,855 since Mar 2010
Thanks: 4,238 given, 26,731 received

I have responded in the other thread.

If you want to know where the problem lies you should consult the NinjaTrader log (see Control Center) or the log and trace files (Documents -> NinjaTrader 7 -> log and Documents -> NinjaTrader 7 -> trace)

Reply With Quote
The following user says Thank You to Fat Tails for this post:


futures io Trading Community Platforms and Indicators NinjaTrader > DrawText() Problem when converting NT6.5 to NT7


Last Updated on September 23, 2012


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
 

Battlestations! Show us your trading desk - $1,500 in prizes!

March
 

Importance of Finding Your Own Way w/Adam Grimes

Elite only
 

Journal Challenge w/Jigsaw

April
     



Copyright © 2021 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts