Announcement

Collapse
No announcement yet.

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

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    45 views
    0 likes
    Last Post SalmaTrader  
    Started by CarlTrading, 07-05-2026, 01:16 PM
    0 responses
    22 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 06-17-2026, 10:32 AM
    0 responses
    14 views
    0 likes
    Last Post CaptainJack  
    Started by kinfxhk, 06-17-2026, 04:15 AM
    0 responses
    20 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 06-17-2026, 04:06 AM
    0 responses
    22 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X