Assist in timinings
-
Greetings,
I am trying to create a strategy and I am stuck in 2 timing aspect. I want the expert advisor to open only one buy position when price is above moving average and RSI is below the value of 30. I would like to close the buy position when price closes below the moving average only. And vice versa regarding opening a selling position.
Below, you can find the shared project:
https://fxdreema.com/shared/FFCvSwOUc
Your earliest response is much appreciated
-
-
Start by splitting the 2 trade trees. Buy should be totally separate from sell when using opposite conditions. I have even grown to building an EA for buys and a separate for sells, just beacause usually the algo for one doesnt always work as well for the other...so complicate everything less and totally separate buy and sell into 2 EAs.
-
this is totally my opinion however, others prefer to have everything in 1 place.
-
Block ID 17 should be set for sell trades only whereas block ID 18 should be set for buy trades only.
-
@ramimoujaes this is actually very close, just add "no position" checks:
https://fxdreema.com/shared/fj89p7mHb