Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy that sends a pending order until the price fills the order

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

    Strategy that sends a pending order until the price fills the order

    How it is done in a strategy to place a “stop limit” order waiting until the price arrives and fills the order.
    That is, a strategy leaving an order pending for the price to fill it



    #2
    Hello Mari0504,

    Thank you for your post.

    By default, limit and stop limit orders will be cancelled at the end of a bar if the conditions for entry are no longer true. If you wish the order to remain in place until it gets filled, you can submit the order to be live until explicitly cancelled. This page of our help guide demonstrates this with a limit order, the only difference for a stop limit order would be that you would need to adjust the price it's at as buy stop limits can only be placed above the market and sell stop limits below the market.



    Please let us know if we may be of further assistance to you.

    Comment


      #3
      Thanks for your answer but it is not the solution to my question. Maybe I didn't express myself well.

      I want to use a strategy that places the orders BEFORE the arrival of the price at the chosen point to enter the market. When the price reaches that point, the “Buy or Shell Limit” order will be filled. It is essential that the order is launched BEFORE the price is reached.

      The “isLiveUntilCancelled” option is useful but it does not allow my strategy to place the order in advance so that it will be filled when the price reaches the entry point.

      This is easy in manual trading. My problem is doing it in an automatic strategy.

      Thanks

      Comment


        #4
        Hello Mari0504,

        Thank you for your reply.

        The example in my prior post demonstrates placing limit orders 2 ticks below the low of the bar where it will remain until it is either filled when the price reaches it or is cancelled - is this not the kind of behavior you are attempting to achieve? Have you imported and tested the example? It actually will place 2 orders, one that will be cancelled at the end of the bar if not filled and one that will remain until filled or cancelled.

        Thanks in advance; I look forward to assisting you further.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by NullPointStrategies, Yesterday, 05:17 AM
        0 responses
        57 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        133 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        73 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        45 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        50 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X