Forum

False in Passing Parameter Document?

https://docs.mql4.com/basis/function/parameterpass Heres the code above, 1st Method #property strict //I added this one, not sure its gonna mean something for thise sort of code but Im stil a beginner n wanted to add it in. //+------------------------------------------------------------------+ //|

SAME EXACT CODE but the one that I wrote just dont work

(Just started learning couple days ago,apologies for the sloppy coding) Just wrote an EA which long when (FastMA2<=SlowMA2&&FastMA1>SlowMA1) and short when (FastMA2>=SlowMA2&&FastMA1<SlowMA1). Only one position at a time. I tried using OrderModify to close the trade just to get used to the function