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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    43 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    20 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    30 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    47 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    38 views
    0 likes
    Last Post CarlTrading  
    Working...
    X