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 Mestor, 03-10-2023, 01:50 AM
    16 responses
    387 views
    0 likes
    Last Post z.franck  
    Started by rtwave, 04-12-2024, 09:30 AM
    4 responses
    31 views
    0 likes
    Last Post rtwave
    by rtwave
     
    Started by yertle, Yesterday, 08:38 AM
    7 responses
    29 views
    0 likes
    Last Post yertle
    by yertle
     
    Started by bmartz, 03-12-2024, 06:12 AM
    2 responses
    22 views
    0 likes
    Last Post bmartz
    by bmartz
     
    Started by funk10101, Today, 12:02 AM
    0 responses
    7 views
    0 likes
    Last Post funk10101  
    Working...
    X