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 Mindset, 04-21-2026, 06:46 AM
    0 responses
    90 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    135 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    120 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    69 views
    0 likes
    Last Post PaulMohn  
    Working...
    X