Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Transferring Old Custom Indicators From NinjaTrader 7 To NinjaTrader 8

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Transferring Old Custom Indicators From NinjaTrader 7 To NinjaTrader 8

    I have a group of indicators I wrote in Ninjascript for NinjaTrader 7. Is it possible to transfer them to 8? For reference, a portion of the original script looks like this:

    if(CurrentBar<2)return;if((High[0]<=High[2])&&(Open[0]<Close[2])) DrawDiamond("tag1" + CurrentBar.ToString(),true,0,High[0]+(TickSize*50),Color.Red); else RemoveDrawObject("tag1"+CurrentBar.ToString());
    }

    Any help is much appreciated. Thank you in advance

    #2
    Hello vern13,

    Thank you for your post.

    Unfortunately, due to the code-breaking changes to the structure of NinjaScripts as well as changes to the NinjaScript properties and methods, no scripts created for NinjaTrader 7 will import into NinjaTrader 8.

    Below is a link to the migration guide which lists what can migrate from NinjaTrader 7 to NinjaTrader 8.
    http://ninjatrader.com/NinjaTrader-8-MigrationGuide

    If this is a script you have created that you would like to port to NinjaTrader 8, my advice is to start by creating as much of the script as possible in NinjaTrader 8 using the Strategy Builder (or Strategy Wizard). This will create the framework of the indicator or strategy which has large changes from NinjaTrader 7 to NinjaTrader 8.

    Then copy all code from the NinjaTrader 7 scripts OnBarUpdate to the OnBarUpdate of the NinjaTrader 8 script. This will introduce errors that will need to be resolved.

    Below I am including a link to a list of the code-breaking changes from NinjaTrader 7 to NinjaTrader 8.
    http://ninjatrader.com/support/helpG...ng_changes.htm

    The help guide will be the best way to see how things have changed from NinjaTrader 7 to NinjaTrader 8.

    When first starting to port scripts, I myself would open the NinjaTrader 7 help guide and the NinjaTrader 8 help guide to the same sections so that I could compare. The majority of code supported by NinjaTrader is included in the help guides.

    Below is a link to a forum post with helpful information about getting started with NinjaScript.
    https://ninjatrader.com/support/foru...040#post786040

    Please let us know if we may assist further.
    Brandon H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by ct, Today, 01:53 AM
    0 responses
    1 view
    0 likes
    Last Post ct
    by ct
     
    Started by maiyudse, Today, 12:57 AM
    0 responses
    2 views
    0 likes
    Last Post maiyudse  
    Started by SmartArtsStudio, Yesterday, 11:24 PM
    0 responses
    3 views
    0 likes
    Last Post SmartArtsStudio  
    Started by kenz987, Yesterday, 10:06 PM
    0 responses
    4 views
    0 likes
    Last Post kenz987
    by kenz987
     
    Started by AaronKoRn, Yesterday, 07:24 PM
    0 responses
    8 views
    0 likes
    Last Post AaronKoRn  
    Working...
    X