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 NullPointStrategies, Today, 05:17 AM
    0 responses
    48 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    126 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    66 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    42 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    46 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X