need help in setting TP on base of MA
-
Hello,
How to set a take profit using the Exponential Moving Average to implement the following condition: example- For a buy trade, if the candle closes above the 12-period EMA, the trade should be closed. share the link below. thank you.
(shared/TuRATaGde) -
I'm not sure what you exactly mean. Are you interested in the TP or the closing part?
-
Thank you for the reply. I will try to explain.
"I have set a 10-pip Stop Loss (SL), and I do not plan to set a Take Profit (TP). For a buy trade, I intend to use the Exponential Moving Average (EMA) to determine when to close the trade. If the closing price of a candle is above the 12-period EMA, EA should close the trade. The same condition applies for a sell trade; if the candle's closing price is below the 12-period EMA, EA should close the trade." -
Just create a condition when candle close crosses over/under the EMA and then put the block to close the trade.
-
Thank you for the reply. so, the block order is Buy now and condition and close the trade. please correct me if am wrong
-
No, create a condition block with the ema crossover/under, and then a block below with close buy or sell
-
Thanks ales. i got it now