Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Ninjatrader sample multi timeframe strategy parameters

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

    Ninjatrader sample multi timeframe strategy parameters

    Hi,

    Where can I see the description/parameters of the ninjatrader's "sample multi timeframe" strategy included with the software? I can see on the graphic it's buying at crossover of MA5 and 50 at the chosen time period but the exit signal isn't clear on which timeframe it operates.

    Can you please share the strategy's code or explain the open and close conditions so I can replicate and adapt it to my objectifs.

    Thank you.

    #2
    Hello ocus123, thanks for posting, and welcome to the forum.

    SampleMACrossover can be viewed from the NinjaScript Editor's Strategies folder (Control Center>New>NinjaScript Editor).

    The exit works because of the managed approach order handling. Say the strategy calls EnterLong() and enters a long position, then, when a CrossBelow occurs EnterShort() will be called. When this happens the account is reversed automatically. Specifically, an exit order is sent out for the Long position and a new Short position is opened. So the strategy flip/flops between long and short until it is disabled or if ExitOnSessionClose is enabled it will also exit.

    Kind regards,
    -ChrisL

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CaptainJack, 05-29-2026, 05:09 AM
    0 responses
    165 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 05-29-2026, 12:02 AM
    0 responses
    87 views
    0 likes
    Last Post CaptainJack  
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    128 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    207 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    185 views
    0 likes
    Last Post CarlTrading  
    Working...
    X