Delet TakeProfit from a running trade
-
Hi,
first of all sorry for my bad english. I try to explain my problem:
I defined a pending order with an initial StopLoss and TakeProfit. When the order is placed and a special condition is true, I would like that only the StopLoss works with the PAR SAR indicator and the TakeProfit is no longer active. I found no way how I can delet the TakeProfit from the active trade and therefore I need help.
Thanks and greetings from Germany -
So...
- You make a pending order with SL and TP
- The pending order turns into a trade
- You immediately delete the TP and manage the SL in some way
... and you ask how to delete the TP.
What I am asking is - why you are putting this TP in the first place? If TP will always be deleted, why do you need it at all?
-
is possible he needs delete TP only if "his special condition is true"?
I have not this tried, but you can try set TP to 0 with blocks: Trade created +(your conditions) if true + For each Trade (set not more than 1 trade) + modify stops (here you set for TP 0 and for SL without change)
(place this in on Trade section) -
Hi,
thank you for your help. Life can be so simple. Set the TP to "0" is the answer. -
oh yes the answer why I first set a TP and then I delete this. In my trading-idea I am looking for hammer in DAX. Sometimes a hammer starts a big move, and I only get a little part of this move. So first I set a TP, and when the PAR SAR works, I set the trailing stop on the PAR SAR and delete the TP.
-
__oh yes the answer why I first set a TP and then I delete this. In my trading-idea I am looking for hammer in DAX. Sometimes a hammer starts a big move, and I only get a little part of this move. So first I set a TP, and when the PAR SAR works, I set the trailing stop on the PAR SAR and delete the TP.[/quote:17v83jqy]
ok so you need working in onTick section, here you can try delete TP when you set to 0.