Good logic from this EA and a little advice & criticism from me, if this EA is modified according to the rules of an indicator like it would be better, like EA with rules taken from the MACD indicator, maybe that is my suggestion, hopefully it can renew the EA for the future,