The first EA I'm trying to understand, is the MT4 Example EA of Moving Average.
A quite simple one, now I finally understand it. Now I'm trying to add stop loss to this EA. Only a practice.
But always failed.
What's wrong with my stop loss, it should be like a number like 300 points stop loss, or like (open price)±300 ？
See the following， it doesn't work T.T！ HELP！！Thank you a looooooot！！
//--- sell conditions
if(Open>ma1 && Close<ma1 && ma1<ma)
//--- buy conditions
if(Open<ma1 && Close>ma1 && ma1>ma)
T.T！Please also teach me about setting Take Profit……Thank You！
if SL is 300 points then you need to convert it to a decimal
To add comments, please log in or register