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

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

    Chris L.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by burtoninlondon, Today, 12:38 AM
    0 responses
    10 views
    0 likes
    Last Post burtoninlondon  
    Started by AaronKoRn, Yesterday, 09:49 PM
    0 responses
    14 views
    0 likes
    Last Post AaronKoRn  
    Started by carnitron, Yesterday, 08:42 PM
    0 responses
    11 views
    0 likes
    Last Post carnitron  
    Started by strategist007, Yesterday, 07:51 PM
    0 responses
    14 views
    0 likes
    Last Post strategist007  
    Started by StockTrader88, 03-06-2021, 08:58 AM
    44 responses
    3,983 views
    3 likes
    Last Post jhudas88  
    Working...
    X