Dear Support Team,
I need to create an EA where the Exit (Take Profit) is once Price reaches a certain line.
Let's use Bollinger Bands as an Example. Should Price go up and "on touch" (crossing) the Upper Band, the Trade should be closed (Take Profit Level).
How can i do this? I've tried with Candle High => Upper Band, Shift = 0 (Current Candle), but this is not closing at the present candle, it waits for the next candle to see if the High was higher or Equal, therefore the Trades close losing Pips in the Process.
I know that I could use Bid or Ask = Upper Line, but do not know which one to use.
I assume I would use Ask for Long Trades and Bid for Short Trades, but I am not sure about this.
Can you help?
I need to create an EA where the Exit (Take Profit) is once Price reaches a certain line.
Let's use Bollinger Bands as an Example. Should Price go up and "on touch" (crossing) the Upper Band, the Trade should be closed (Take Profit Level).
How can i do this? I've tried with Candle High => Upper Band, Shift = 0 (Current Candle), but this is not closing at the present candle, it waits for the next candle to see if the High was higher or Equal, therefore the Trades close losing Pips in the Process.
I know that I could use Bid or Ask = Upper Line, but do not know which one to use.
I assume I would use Ask for Long Trades and Bid for Short Trades, but I am not sure about this.
Can you help?