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 Mindset, 04-21-2026, 06:46 AM
    0 responses
    89 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    135 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    119 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    69 views
    0 likes
    Last Post PaulMohn  
    Working...
    X