EQUIDISTANT PENDING ORDERS
-
Hello friends, please help me out.
I would like my robot to place for example a buy trade and a sell stop order at the same time. Sell stop should be 10pips below the buy trade. And when the sell stop order is triggered, a buy stop order should be placed 10pips above the sell stop. I need appropriate blocks and setting for Appreciate your help.
This is the scheme I have
https://fxdreema.com/shared/5CyrOs0rb
Buy stop has to be placed immediately the sell stop is triggered. -
@agitins Are you expecting a perfect execution of all trades at the same two prices? Because I can guarantee that will never happen. That 10 pips distance is too close for the strategy to work properly. Spread and slippage will mess it up sooner than later.
-
@l-andorrà Not exactly the same two prices perfect excution.
-
@agitins Then you can try it with pending orders, but in that case spread will activate them at slightly differnt prices. Can you strategy be successful under those conditions?
-
@l-andorrà Yes sir
-
@agitins Ok. Here you have the first part. Try to complete it with the later part:
-
@l-andorrà where can I get modify variable or equivalent in mt5 mode. Thank once again.
-
@agitins Sorry, I have got it.
-
@agitins Good.
-
@l-andorrà Hello sir, I managed to assemble the bot but had errors in mt5 editor https://fxdreema.com/shared/oCStPpMzd

-
@agitins You need to create the variable called 'open_price' and then insert it in the appropriate places, not just writing it name.
-
@l-andorrà I later created and it worked. Cheers
-
@agitins You're welcome.
-
@l-andorrà Only buy stop is triggered and price is at 10000pips when backtesting with eurusd. Request help me find the issue. Thanks in advace
https://fxdreema.com/shared/pOtdpg9lb

-
@agitins Disconnect blocks 15 and 16. Then disconnect blocks 14 and 10. Then use a 'Pass' block not connected to any other block and finally connect block 14 below it.
-
@l-andorrà Thanx alot sir almost worked fine but pending buy could trigger even before 'BUY NOW' when I used 'for each Position' on top of 'No pending order' 'BUY NOW' triggered first but 'BUY STOP' was placed many times. How can I make it placed once par round.
I really appreciate.
https://fxdreema.com/shared/tjPLzcjfb -
@agitins Remove block 17.
-
@l-andorrà Hello, what can I do to make sure the Buy, sell stop and buy stop are placed once every round. Thank you
-
@agitins Add a 'No trade' block above condition block 1.
-
@l-andorrà Please help make me know how to make the EA place one "BUY STOP" per round of trade. When I use the "COUNTER: PASS ONCE" block, it places once per round but not in next rounds. Kindly help me out.
https://fxdreema.com/shared/6giVVBn4
I highly appreciate you sir.