EMA crosses the opening price and closes the trades
-
Hello
Can you help me, please? Show example?
I have the basic idea, the price deviates from the EMA and goes back.
I can not create a gradual closing of trades when EMA crosses their opening price.
I searched the forum and modified the opening price of only the first trade (variables).
I want to close the shops gradually.
Thank you and sorry for my google-English.

-
If I understand correctly, you want something like this: https://fxdreema.com/shared/Rm3OIFX6e
The backtest results:

-
Thank you very much.
It does what to do.