Announcement

Collapse
No announcement yet.

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.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Today, 05:17 AM
    0 responses
    25 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    121 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    64 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    41 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