open/close at EMA
-
Hi guys, I'm struggling to undersatnd why this logic fails. I create a simply EA which buys only, when price crosses above from below the EMA (I'm using "TEMA" indicator) plus 1 tick. It closes position when price crosses the EMA from above to below.
As the results I got some errors like these


The position is opened but doesn't closes anytime it get back to EMA.
here is the logic in which I tried 2 options to close the position, but both gave me the same errors
Is there anything wrong?
-
Could you please share the link to the project instead? That would make reviewing easier.
-