Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Mutli-chart strategy coding

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

    Mutli-chart strategy coding

    Hi, does anyone have any examples of how to code a multi-chart strategy?

    My main concern is how to code two charts running on different periods ie. 5NT, 11NT

    It would mean the world to me is you could help me out!

    #2
    Hello Rawheritage,

    Thanks for your post.

    For clarity, generally speaking, a strategy can only be applied to one chart however in the strategy you can add other data series (either other instruments or other time frames of the same instrument (or both)) to accomplish a multi time frame (and/or multi instrument) strategy.

    NinjaTrader7 ships with an example of a multi time frame strategy called SampleMultiTimeFrame that would be a good starting point. If you open the code in the Ninjascript editor you will see that the code is well commented to clarify what is happening at each line of code. It is only an example and has been kept to a simple strategy.

    There is also a reference strategy you can download and test that shows how to enter on one time frame and exit on another, it can be found here: http://ninjatrader.com/support/forum...ead.php?t=5787

    Finally, the very best reference is the helpguide section on Multi series/time frame which covers both indicators and strategies and we recommend reading this more than once and while examining the sample strategies: http://ninjatrader.com/support/helpG...nstruments.htm
    Paul H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by ghoul, Today, 06:02 PM
    0 responses
    7 views
    0 likes
    Last Post ghoul
    by ghoul
     
    Started by Barry Milan, Yesterday, 10:35 PM
    6 responses
    18 views
    0 likes
    Last Post Barry Milan  
    Started by DanielSanMartin, Yesterday, 02:37 PM
    2 responses
    13 views
    0 likes
    Last Post DanielSanMartin  
    Started by DJ888, 04-16-2024, 06:09 PM
    4 responses
    13 views
    0 likes
    Last Post DJ888
    by DJ888
     
    Started by terofs, Today, 04:18 PM
    0 responses
    12 views
    0 likes
    Last Post terofs
    by terofs
     
    Working...
    X