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


Notices

Problems Converting NT 6.5 indicators to NT7
Updated: Views / Replies:14,625 / 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 100,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,333 since Jul 2009
Thanks: 1,246 given, 2,664 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,333 since Jul 2009
Thanks: 1,246 given, 2,664 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,333 since Jul 2009
Thanks: 1,246 given, 2,664 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,446 since Jun 2009
Thanks: 1,000 given, 1,599 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, 610 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,446 since Jun 2009
Thanks: 1,000 given, 1,599 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: 329 since Jul 2009
Thanks: 17 given, 420 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,446 since Jun 2009
Thanks: 1,000 given, 1,599 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: 41 since Nov 2009
Thanks: 323 given, 101 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,446 since Jun 2009
Thanks: 1,000 given, 1,599 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)
 

Journal Challenge w/Earn2Trade and $599 in Prizes

November
 

Anthony Drager: TBA

Nov 29
 

Linda Raschke: TBA

Elite only
 

Peter Davies: TBA

Dec 6
 

Brannigan Barrett: TBA

Elite only
 

Cannon Trading: Ask Me Anything

Dec 13
     

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


Tags
average, bar time, bid/ask, breakout, chartcontrol, chartstyle, cmi, cmi pivots, dataseries, dom, dow, drawtext, easylanguage, elite, es, fat tails, fed, futures, gomcd, gomi, historical data, how to, indicator, indicators, level 2, multicharts, ninjascript, ninjatrader, ninjatrader 7, nt7, nt7beta, onmarketdepth, pivots, price line, regression, renko, search, sim, sim_trading, t3, tick charts, trade live, tradestation, trading, type, update, vwap, wicks, zinonlagma

All times are GMT -4. The time now is 05:26 AM. (this page content is cached, log in for real-time version)

Copyright © 2018 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 2018-11-16 in 0.15 seconds with 15 queries on phoenix