Forum

mql4 equivalent to Excel Min() and Max() of a moving average

I am trying to retrieve the value of the highest point and lowest point of a moving average over the last 20 bars. Simple, if this was an excel spreadsheet . This is as close as I have been able to get. No Errors, but when MaxValue> MinValue is used as a BUY or SELL condition, it prevents all

EA stripped of all trading condition still makes trades !!

To say that I am puzzled is an understatement. I removed all the Buy Sell and Exit conditions from this EA, Ran the Strategy Tester and it still makes trades. It seemed that no matter what trading conditions I entered weird trades would take place, beginning and ending at random. Oblivious to the