help.. how to make ea cut switch?
-
how to make ea cut switch? suppose I open the first position by manual order, then ea will make pending order stop with double lot with a certain pips distance.
example
open first manual buy 1 lot 1.2050
ea will make pending order sell stop 2 lot at price 1.2000
and so on, ea will make pending order the reverse of current order now ..Thank you for the help
-
First you can change this to 0, so the EA could see the manual orders: http://prntscr.com/hvgndj
Or, in the blocks there is an option to see only manual orders (where the Group settings are for blocks like "No trade" for example).Here is something that I just made - https://fxdreema.com/shared/ELsR5b3od
To have pairs of trade-order, my idea is every time we create an order, its Comment to be the same as the ticket number of the trade. Well, the Comment is a string and the ticket number is an integer, which means that maybe there is a situation when conversion bug happens, but in my test it worked. -
Ooops, don't try this on real account! I left this working and then I looked to see many many trades and orders opened. Something is wrong with this EA and maybe it starts to fail when some pending order is triggered, I don't know
-
okay, thanks for the suggestion, i will try first
