Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

PT not filled even when price reaches its value

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

    PT not filled even when price reaches its value

    Hello,

    quite often I face problem, price hits my PT but it gets not filled. What strategy do you use to handle this? I was thinkinh about ExitMarket on few seconds touch? Or moving SL to PT -1 tick.
    What approach would you recommend?

    Thanks for advices

    Paul

    #2
    Hello, thanks for writing in. There are several ways to handle this through code, either one will do the same thing. A market order would work to close the position and cancel any existing stop loss/profit target orders for the position. You can monitor the price in OnMarketData and if the Last price does touch your profit target but it does not fill (detected through OnOrderUpdate) then submit the market order. You can also move the stop to the ask or bid price, not -1 tick as that would cause an order submission reject. If the profit target is for a long order, move the profit target to the Ask price, if the profit target is for a short order, move it to the Bid price.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Today, 05:17 AM
    0 responses
    50 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
    69 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