NexusFi: Find Your Edge


Home Menu

 





converting an NT6.5 indicator to NT7


Discussion in Traders Hideout

Updated
    1. trending_up 4,297 views
    2. thumb_up 3 thanks given
    3. group 2 followers
    1. forum 3 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
 
aligator's Avatar
 aligator 
Las Vegas, NV
Legendary Market Wizard
 
Experience: Advanced
Platform: Abacus, Slide Rule, HP-65
Trading: Futures, Stocks, Options
Posts: 3,777 since Aug 2010
Thanks Given: 1,103
Thanks Received: 6,181

How do you convert an NT6.5 indicator to NT7?


Visit my NexusFi Trade Journal Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Friday Update: Markets Now Pricing Fed Rate HIKES as Sta …
Traders Hideout
Irans Dual Probability: Guns Quiet at 99.95% While Forma …
Prediction Markets & Event Contracts
The Great Rotation -- Small Caps Crushing Tech as Sectio …
Traders Hideout
CME Cuts Precious Metals Margins Up to 21% Starting Toda …
Commodities
Hungary Called for Magyar at 97pct, Ending 16-Year Orban …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
21 thanks
2026 Jlab journal
10 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Lady Vols Primer: Trading Volatility Journal
6 thanks
Trying to learn Volume and price action correlation
5 thanks
  #3 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader
Broker: Interactive Brokers
Trading: Futures & Stocks
Posts: 9,887 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,114



aligator View Post
How do you convert an NT6.5 indicator to NT7?


Many NT 6.5 indicators work in NT 7.0. However NT 7.0 has a lot of new features and some code breaking changes. Therefore every indicator should be checked and tested before it is used with NT 7.0.

You may proceed as follows:


(1) First Step - Compile the Indicator

Export the indicator via NT 6.5. and try to import via NT 7.0. If this has worked advance directly to step (2). If this did not work you should change your logs and your trace files, as they will likely point to the trouble. As you cannot import the file directly, you will now need to copy the indicator file manually from -> My Documents -> NinjaTrader 6.5 -> bin -> Custom -> Indicator to My Documents -> NinjaTrader 7 -> bin -> Custom -> Indicator. If the indicator references other indicators, you need to check whether these are already part of your NinjaTrader 7 installation, otherwise you need to copy those as well.

Now start NinjaTrader 7 and edit the indicator. Starting with the information from the logs and the trace file you now need to replace the offending code with appropriate code. The most frequent changes that need to be done:

-> change the Draw() methods, as NinjaTrader uses a modified syntax for them
-> recode custom plots as ChartControl has a number of code breaking changes (this only affects indicators that override NinjaTrader's Plot() method with a custom plot, but this can be really difficult

Once you made all the necessary changes, compile via F5.


(2) Second Step - Testing of the Compiled Indicator, Further Changes

If you have a compiled indicator, this does not mean that it will plot correctly. You first need to test it. Often you will find that the indicator does not work because

-> some code needs to be shifted from the Initialize() section to OnStartUp(), which is a new NT 7 feature.

Once the indicator runs in NT7, you can now clean it up.


(3) Third Step - Clean Up the Code

Many of the NinjaTrader 6.5 indicators use code, which is inefficient or can improved by using advanced features of Ninjatrader 7. Some examples are

-> Replacing the custom plot (the new MACDBBLines indicator does not use any custom plot, as the features of the NinjaTrader 7 default plots are now sufficient
-> May NT 6.5 indicators were repainting - at least in line mode - to color indicator plots. This is no longer necessary with NinjaTrader7
-> OnStartUp() can be used to initialize variables, so you do not need to do this in OnBarUpDate() any more.

Although these changes are not necessary, the contribute to overall performance and stability.


Reply With Quote
Thanked by:
  #4 (permalink)
 
aligator's Avatar
 aligator 
Las Vegas, NV
Legendary Market Wizard
 
Experience: Advanced
Platform: Abacus, Slide Rule, HP-65
Trading: Futures, Stocks, Options
Posts: 3,777 since Aug 2010
Thanks Given: 1,103
Thanks Received: 6,181

Fat Tails,
Thanks a bunch. Very nice and detailed guide. In my quest, the NT6.5 file was imported into NT7 with no problem. Per your Step 2 other things look normal also. However, once attached to a chart nothing will plot. This is a Confluence Zones indicator and potential fixes are way beyond my cut and paste skills. Perhaps I need to ask someone in Elite section for help.

Thanks you again!


Visit my NexusFi Trade Journal Started this thread Reply With Quote




Last Updated on March 2, 2011


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts