how to do once per each cross?
-
https://fxdreema.com/shared/6tnDxJk0c
good day
in this simple ea , it continue openin positions as long as their is a "cross" in the sellected time frame (Fast MA is higher or lower slow MA ).
in realty , the MA indicator oscilates within the sellected time frame : what i want is to open one position only each time the cross happen , if in the sellected time frame the MA oscilates and make 100 crosses then their must be 100 positions exactly , not more nor less...
how to do that pls ... tks -
@bacharchoura1 cross condition==>once per bar==>buy
-
You need to add to the logic, set flags true/false as things happen, and check before/after this way you control what is classed as happened and can happen.
-
THANK YOU MR JESTAP FOR YOUR PROFFESSIONAL ANSWER..