If I am using pending orders in my code, is there a way to recall the same identical pending order and re-enter it with the same entry,target and exit points?
For example, I use the following pending order:
buystop 1.2000 sl: 1.1950 tp: 1.2100
the order executes, and I want to for example tell the EA that if price dips below the buystop by 10 pips, to re-enter the buystop order at the exact values above again...
Can anyone help me out with the code? I am using ticket1 = OrderSend OP_BUYSTOP for the above......but I am not sure I understand how to store the above trade in a variable to be re-used again in the example given above...
For example, I use the following pending order:
buystop 1.2000 sl: 1.1950 tp: 1.2100
the order executes, and I want to for example tell the EA that if price dips below the buystop by 10 pips, to re-enter the buystop order at the exact values above again...
Can anyone help me out with the code? I am using ticket1 = OrderSend OP_BUYSTOP for the above......but I am not sure I understand how to store the above trade in a variable to be re-used again in the example given above...
In Charts We Trust!