DrawText() Problem when converting NT6.5 to NT7 - NinjaTrader Programming | futures io social day trading
futures io futures trading


DrawText() Problem when converting NT6.5 to NT7
Updated: Views / Replies:892 / 6
Created: by qzhang119 Attachments:1

Welcome to futures io.

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

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

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

Reply
 
Thread Tools Search this Thread
 

DrawText() Problem when converting NT6.5 to NT7

  #1 (permalink)
Elite Member
HC, NJ
 
Futures Experience: Beginner
Platform: NinjaTrader
Favorite Futures: Forex
 
Posts: 9 since Aug 2012
Thanks: 5 given, 0 received

DrawText() Problem when converting NT6.5 to NT7

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.

Reply With Quote
 
  #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

 
  #3 (permalink)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,651 since Mar 2010
Thanks: 4,226 given, 25,600 received
Forum Reputation: Legendary



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

https://futures.io/ninjatrader-programming/2501-problems-converting-ninjatrader-6-5-indicators-ninjatrader-7-a.html

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:
 
  #4 (permalink)
Elite Member
HC, NJ
 
Futures Experience: Beginner
Platform: NinjaTrader
Favorite Futures: 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, 15 views)
Reply With Quote
 
  #5 (permalink)
Elite Member
Calcutta, India
 
Futures Experience: Intermediate
Platform: ArthaChitra
 
Posts: 278 since Jun 2009
Thanks: 161 given, 259 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:
 
  #6 (permalink)
Elite Member
HC, NJ
 
Futures Experience: Beginner
Platform: NinjaTrader
Favorite Futures: 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

Reply With Quote
 
  #7 (permalink)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,651 since Mar 2010
Thanks: 4,226 given, 25,600 received
Forum Reputation: Legendary

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:

Reply



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

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Linda Bradford Raschke: Reading The Tape

Elite only

Adam Grimes: TBA

Elite only

NinjaTrader: TBA

January

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
view 2 workspaces in NT6.5 and NT7 emini_Holy_Grail Traders Hideout 1 June 1st, 2013 12:52 PM
Upgrade NT6.5 Indicator to NT7 geniuss NinjaTrader Programming 2 April 15th, 2011 10:57 AM
converting an NT6.5 indicator to NT7 aligator Traders Hideout 3 March 2nd, 2011 07:01 PM
Running NT7 along with NT6.5 trendisyourfriend NinjaTrader 3 November 1st, 2010 04:01 PM
TS ELD conversion to NT7 / NT6.5 rfiske NinjaTrader Programming 5 July 18th, 2010 02:44 PM


All times are GMT -4. The time now is 11:01 PM.

Copyright © 2017 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
Page generated 2017-12-11 in 0.11 seconds with 20 queries on phoenix via your IP 54.145.16.43