Forum

EMA Predictive 2

I have many years of programming experience but not much in MQL4. The attached indicator seems very interesting but has what appear to be a few mistakes in the code - in a couple of places it seems to be referencing arrays using an index of -1 which I believe would result in using VERY old data. Can

Error 130 - invalid stop. Why?

I'm writing/testing an EA that returns error 130 on every attempt to buy or sell. I actually copied the entire buy/sell logic from another EA that works perfectly and am using zero (0) in the stop loss parameter just as the working EA does. Can there be another reason for this? I'm stumped