Problems Converting NT 6.5 indicators to NT7 - NinjaTrader Programming | futures io social day trading
futures io futures trading


Problems Converting NT 6.5 indicators to NT7
Updated: Views / Replies:13,692 / 68
Created: by Zondor Attachments:16

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
 16  
 
Thread Tools Search this Thread
 

Problems Converting NT 6.5 indicators to NT7

  #1 (permalink)
Elite Member
Portland Oregon, United States
 
Futures Experience: Beginner
Platform: Ninjatrader®
Broker/Data: CQG, Kinetick
Favorite Futures: Gameplay Klownbine® Trading of Globex
 
Zondor's Avatar
 
Posts: 1,327 since Jul 2009
Thanks: 1,246 given, 2,635 received

Problems Converting NT 6.5 indicators to NT7

The idea of this thread is to bring together people who are having problems getting their favorite indicators from Ninjatrader 6.5 to work in 7, with those who might be able to fix the problems.

So. tell us what is not working and someone may come along to help you.

If you have found the solutions to any problems that came up when converting an indicator, please post them here.

See the Ninjatrader 7 Code Breaking Changes document, accessible through the NT7 General questions and bug reports thread on the NT forums.

Reply With Quote
 
  #2 (permalink)
Elite Member
Portland Oregon, United States
 
Futures Experience: Beginner
Platform: Ninjatrader®
Broker/Data: CQG, Kinetick
Favorite Futures: Gameplay Klownbine® Trading of Globex
 
Zondor's Avatar
 
Posts: 1,327 since Jul 2009
Thanks: 1,246 given, 2,635 received

DrawText() Method changed in NT7

In Ninjatrader 7 there are two additional parameters required. Boolean autoscale goes right after Tag, the first parameter. Usually this should be false. An integer, Y pixel offset, goes right after y. usually this should be 0.

You can find this information in the Ninjatrader 7 Help files. A search for DrawText will get you to the topic.

Reply With Quote
 
  #3 (permalink)
Elite Member
Portland Oregon, United States
 
Futures Experience: Beginner
Platform: Ninjatrader®
Broker/Data: CQG, Kinetick
Favorite Futures: Gameplay Klownbine® Trading of Globex
 
Zondor's Avatar
 
Posts: 1,327 since Jul 2009
Thanks: 1,246 given, 2,635 received

List behavior changed in NT7, affects Level II indicators


In NT7, rows must be added to a list before attempting to read from or write into those rows. Otherwise, "index out of range" runtime errors are generated.

Reply With Quote
The following user says Thank You to Zondor for this post:
 
  #4 (permalink)
Elite Member
Lagos, Nigeria
 
Futures Experience: Intermediate
Platform: NinjaTrader, SierraChart
Favorite Futures: Euro Currency & Oil
 
lolu's Avatar
 
Posts: 2,440 since Jun 2009
Thanks: 1,000 given, 1,595 received


Zondor View Post
The idea of this thread is to bring together people who are having problems getting their favorite indicators from Ninjatrader 6.5 to work in 7, with those who might be able to fix the problems.

So. tell us what is not working and someone may come along to help you.

If you have found the solutions to any problems that came up when converting an indicator, please post them here.

See the Ninjatrader 7 Code Breaking Changes document, accessible through the NT7 General questions and bug reports thread on the NT forums.

Zondor,

I've had quite a number of NT6.5 indicators that would not import/compile into NT7Beta. I've been able to import quite a few with a little guidance from the Ninja guys. One of such technique is to copy the .cs file to the required NinjaTrader folder, compile and note the error messages. If the error messages are not many and overwhelming, then the indicator can be tweaked to compile. The Ninjatrader 7 Code Breaking Changes document can also help.

Meanwhile, I'm still not able to import/compile this indicator here. The versions 01 and 02 import/compile without any tweaking, but this version 03 would not import/compile because the "DrawText script command arguments do not conform with NT7 numenclature.

Can you have a look at the indicator above ?

Lolu

Reply With Quote
 
  #5 (permalink)
Elite Member
Wrocław, Poland
 
Futures Experience: Intermediate
Platform: NinjaTrader, Racket
Favorite Futures: Ockham's razor
 
gregid's Avatar
 
Posts: 651 since Aug 2009
Thanks: 321 given, 605 received


lolu View Post

Meanwhile, I'm still not able to import/compile this indicator here. The versions 01 and 02 import/compile without any tweaking, but this version 03 would not import/compile because the "DrawText script command arguments do not conform with NT7 numenclature.

Can you have a look at the indicator above ?

Lolu

Lolu there are 2 additional parameters for DrawText in NT7:
1st is autoscale (true or false)
2nd is pixeloffset (int).

In your case change:
DrawText(objName,"h", objOffset, objVal, objColor, textFont, StringAlignment.Center, Color.Empty, Color.Empty, objectOpacity);

To:

DrawText(objName, false, "h", objOffset, objVal, 0, objColor, textFont, StringAlignment.Center, Color.Empty, Color.Empty, objectOpacity);

Notice where "false" and "0" were added and repeat the same for all other DrawText

Good luck

Reply With Quote
The following 2 users say Thank You to gregid for this post:
 
  #6 (permalink)
Elite Member
Lagos, Nigeria
 
Futures Experience: Intermediate
Platform: NinjaTrader, SierraChart
Favorite Futures: Euro Currency & Oil
 
lolu's Avatar
 
Posts: 2,440 since Jun 2009
Thanks: 1,000 given, 1,595 received


gregid View Post
Lolu there are 2 additional parameters for DrawText in NT7:
1st is autoscale (true or false)
2nd is pixeloffset (int).

In your case change:
DrawText(objName,"h", objOffset, objVal, objColor, textFont, StringAlignment.Center, Color.Empty, Color.Empty, objectOpacity);

To:

DrawText(objName, false, "h", objOffset, objVal, 0, objColor, textFont, StringAlignment.Center, Color.Empty, Color.Empty, objectOpacity);

Notice where "false" and "0" were added and repeat the same for all other DrawText

Good luck

I did put "false" but it never worked. In fact, I had tweaked quite a few NT6.5 indies with the "false" argument and they worked. Now I'm going to insert the "0".

It works !!!!!!

Thanks.

Lolu

Reply With Quote
 
  #7 (permalink)
 Vendor: www.integrity-traders.com 
East Rochester, NY
 
Futures Experience: Intermediate
Platform: NT
 
eDanny's Avatar
 
Posts: 327 since Jul 2009
Thanks: 17 given, 419 received

Those parameters were always available for NT6.5 DrawText() but the code would compile and work without them.

Reply With Quote
The following 2 users say Thank You to eDanny for this post:
 
  #8 (permalink)
Elite Member
Lagos, Nigeria
 
Futures Experience: Intermediate
Platform: NinjaTrader, SierraChart
Favorite Futures: Euro Currency & Oil
 
lolu's Avatar
 
Posts: 2,440 since Jun 2009
Thanks: 1,000 given, 1,595 received


eDanny View Post
Those parameters were always available for NT6.5 DrawText() but the code would compile and work without them.

It never did.

Can you compile this in NT7Beta without those two parameters ? Please let me know.

Lolu

Reply With Quote
 
  #9 (permalink)
Elite Member
Milton, On, Canada
 
Futures Experience: Intermediate
Platform: Ninjatrader
Broker/Data: Interactive brokers, Kinetick
Favorite Futures: EC, ES, YM, NQ, CL
 
Posts: 38 since Nov 2009
Thanks: 286 given, 95 received

Price line indicator is a very useful indicator that I would like to use with N7 but have not been able to do so. Could someone provide a version to work with N7?
Victor

Reply With Quote
 
  #10 (permalink)
Elite Member
Lagos, Nigeria
 
Futures Experience: Intermediate
Platform: NinjaTrader, SierraChart
Favorite Futures: Euro Currency & Oil
 
lolu's Avatar
 
Posts: 2,440 since Jun 2009
Thanks: 1,000 given, 1,595 received



VictorK View Post
Price line indicator is a very useful indicator that I would like to use with N7 but have not been able to do so. Could someone provide a version to work with N7?
Victor

This is what I tweaked and I'm using.

You'll need to copy it to the Ninja "....\bin\Custom\Indicator" folder, then compile it.

Lolu

Attached Files
Register to download File Type: cs PriceLine_Indicator_V_2.cs (10.0 KB, 59 views)
Reply With Quote
The following user says Thank You to lolu for this post:

Reply



futures io > > > > > Problems Converting NT 6.5 indicators to NT7

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Upgrade NT 6.5 to NT 7..BIG PROBLEMS! turkmay NinjaTrader 36 May 18th, 2011 10:48 AM
converting an NT6.5 indicator to NT7 aligator Traders Hideout 3 March 2nd, 2011 07:01 PM
Converting your Indicator for free --> NT 6.5 to NT 7 Druid The Elite Circle 21 September 27th, 2010 09:49 AM
Problems with GOM CD and NT 7 spx_tdr The Elite Circle 12 July 9th, 2010 01:32 AM
Problems with importing indicators into NT7Beta 16 ZTR The Elite Circle 1 May 25th, 2010 07:49 PM


All times are GMT -4. The time now is 06:14 AM.

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-17 in 0.15 seconds with 20 queries on phoenix via your IP 54.82.81.154