Hi, Can anyone help me to creating 'pending order' based on TP of my last closed trade,please?
-
I detached 'variables' block as I noticed it does not make a difference in this project or I am wrong and don't see it.
My problem is that I can't find the way to open only one pending order instead of a few as is it now. -
Firstly, I recommend you to specify candle ID 1 on ALL your condition blocks (both left and right operands). If you lett candle ID 0 as they are now, You can have more than one crossing on the current candle. This is a possible reason for multiple trades.
On the other hand, both 'Pass' blocks are irrelevant. You can remove them. Block ID 11 is also unnenessary as you specified sell on block ID 9. Finally block IS 14 is also unnecessary because it is on the 'On Trade' tab. That block is designed to filter actions on the 'On tick' tab.
Try all these changes and let me know.
-
https://fxdreema.com/shared/Ot5gr8Hrd
Thanks for that but still opens more than one pending order exactly as it was before.
-
Substitute the 'Sell pending orders in grid' block by a 'Sell pending order' one instead.
-
@l-andorrà
no joy
-
Hi, I did as you have advised but there is no joy. As you can see EA opens pending order until hit SL. I haven't got a clue what filter should I use to stop other orders being opened.
-
Can you please share the latest version of your project?
-
-
https://fxdreema.com/shared/SROTAjZlc
Variables are not working. Buy order and pending order is executing but TP in pending order is not working.
In this version I have created pending order at the time of open buy order with TP (loss of buy order) of courseI know that I have to cancel this pending order if buy order is closed with TP
In another version I may wait until buy order is closed with SL and than immediately open sell order with TP ( loss of buy order) -
@l-andorrà
https://fxdreema.com/shared/SROTAjZlcVariables are not working. Buy order and pending order is executing but TP in pending order is not working.
In this version I have created pending order at the time of open buy order with TP (loss of buy order) of courseI know that I have to cancel this pending order if buy order is closed with TP
In another version I may wait until buy order is closed with SL and than immediately open sell order with TP ( loss of buy order) -
Ok, I did as I wanted. It's not perfect, sometimes it is missing some trades probably due to some errors but I am unable to eliminate them. If you see that there is something wrong please let me know.
-
@jarek said in Hi, Can anyone help me to creating 'pending order' based on TP of my last closed trade,please?:
Ok, I did as I wanted. It's not perfect, sometimes it is missing some trades probably due to some errors but I am unable to eliminate them. If you see that there is something wrong please let me know.
You should specify order type on block 9. Now buys and sells are indistinguishable. I recommend you to duplicate the whole tree setructure for buys and sells. OTOH I guess you specified 2 times on block 10 to create 2 pending orders. Right?