Forum

Calculating the Slope of iMA

Hey, im trying to get the Slope of an iMA in percent. I have read multiple posts here but non of them seem to work or im missing out on something (probably last option) I think it doesnt have to do with my code structure, but my math. Heres my code in the OnTick function: double

MQL5 Expert Advisor won't laod into Tester because of 4 if clauses ? (Please Help)

Hi, I have a problem with my EA. It's calculateting the 21,13 and 8 eMA and it should give a Buy signal if the 8 - 13 - 21 are on top of each other in this sequence and a Sell signal if they are beneath each other. I hope that you get what i am trying to say. The thing is it works if i check for a