Total beginner question but I'm struggling to figure it out:
Based on an IF statement my EA must open a new order (with fixed TP and SL levels) if the conditions are met and if there is no existing trade.
If the conditions are met I send the following:
OrderSend(Symbol(),OP_SELL,0.1,Ask,3,Ask+SLpips*Point,Ask-TPpips*Point);
My TP or SL will close the trade automatically. How do I code so that my EA now only opens a new position after this trade either hit SL or TP?
Based on an IF statement my EA must open a new order (with fixed TP and SL levels) if the conditions are met and if there is no existing trade.
If the conditions are met I send the following:
OrderSend(Symbol(),OP_SELL,0.1,Ask,3,Ask+SLpips*Point,Ask-TPpips*Point);
My TP or SL will close the trade automatically. How do I code so that my EA now only opens a new position after this trade either hit SL or TP?