I want to create an EA that has many conditions, but doing it without variables is giving me a lot of problems in order in logic.
How can I do to save the cross of a 5 x ema> ema 21 (it is an example) save a variable with that cross and only if I pass that cross (but still remains) I mean that the ema 5 is still above the 21, then move on to the next condition and thus not create conflicts in the code that all conditions pass in the candle ID 0 or ID 1.
The point is that there are conduits that must pass after other conditions and not in the same candle






