Crosses and confirmations are correct
-
https://fxdreema.com/shared/ZdQSoHtJb

Hello all,
I would like to know if my EA is done correctly.
Some details:- Crossing the averages is a signal for opening the order.
- RSI confirmation authorizes the opening or closing of the order.
- The "No position" block was placed above all the blocks, I don't know if the correct thing would be to connect everything in a single block or if this separation is the most correct to be done.
One change I would like to make is in relation to closing, for example:
In the configuration that is in this EA, he says:
When the moving average 13 crosses above the moving average 26, release a buy signal, but only authorize the purchase if the RSI is greater than the value 80.
When the moving average 13 crosses below the moving average 26, release a sell signal, but only authorize the sale if the RSI is less than the value 20.
Closures should occur when both meet the same criteria.I would like to include both to close both if there is a crossing in the opposite direction without interference from the RSI.
-
How can you "close positions" when there is "no position"?
You might want to use filter here:

-
@roar said in Crosses and confirmations are correct:
How can you "close positions" when there is "no position"?
You might want to use filter here:
Are correct now ?
-
@fabiobioware Yeah, looks better!
-
@roar said in Crosses and confirmations are correct:
Yeah, looks better!
Explaining:
The first condition is to buy.
The second condition ends the purchase if the crossing is the other way around.
The third condition is to sell.
The fourth condition is to end the sale if the crossing is the other way around.