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

Exit Orders for MTF Strats

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

    Exit Orders for MTF Strats

    Hello,

    I am getting an error with an Exit Order that states "invalid order ... Sell STop Price below Close". I understand that the Above the close[0] for Sell STop and Below the close[0] for the "Buy to Close" orders. I am making sure this should not happen in exit logic. But still getting error for a few orders. So I need to make sure I understand scenarios for MTF Strategies.

    I have a MTF Strat with 3 Timeframes (ex: BarsArray[0] = Tick: 500, BarsArray[1] = Tick 2500, BarsArray[2] = Tick 5000) and all on same contract. I have order entry and exit logic on BarsArray[0] and BarsArray[1]. I am using Managed Orders concept.

    The Docs state that these Stop Orders must for every bar. My question is, does this mean that each stop order has to be reissued for every bar of each BarsArray? Meaning, if I place an order to EnterLong on BarsArray[1] and an ExitLong also on BarsArray[1]. Do I have to reissue this ExitLong Order on just bars associated with BarsArray[1]? Or, does the ExitLong have to be reissued on any bar associated with same contract (i.e. BarsArray[0], BarsArray[1], and BarsArray[2])?

    Thanks,
    ATC

    #2
    Hello tornadoatc,

    Thank you for your reply.

    It would only need to be refreshed on the series it was placed to. You wouldn't need to refresh on the other bars.

    Here's a link to our help guide that goes into detail on issues with Multi-time frame scripts:



    Please let us know if we may be of further assistance to you.
    Kate W.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by PaulMohn, Today, 05:00 AM
    0 responses
    9 views
    0 likes
    Last Post PaulMohn  
    Started by ZenCortexAuCost, Today, 04:24 AM
    0 responses
    6 views
    0 likes
    Last Post ZenCortexAuCost  
    Started by ZenCortexAuCost, Today, 04:22 AM
    0 responses
    3 views
    0 likes
    Last Post ZenCortexAuCost  
    Started by SantoshXX, Today, 03:09 AM
    0 responses
    17 views
    0 likes
    Last Post SantoshXX  
    Started by DanielTynera, Today, 01:14 AM
    0 responses
    5 views
    0 likes
    Last Post DanielTynera  
    Working...
    X