Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Dear all, hope that someone can shine some lights on this. I was trying to run the below script on EURUSD. But the alert message always show as
"Moving Average for EURUSD = 0" and "Parabolic SAR for EURUSD = 0"
Any idea what steps I have missed? Do I need to enable something in order to work?
int start()
{
double sar,
ma;
sar=iSAR("EURUSD",PERIOD_M30,0.02,0.2,0);
Alert("Parabolic SAR for EURUSD=",sar);
ma=iMA("EURUSD",PERIOD_M30,8,0,MODE_EMA,PRICE_CLOSE,0);
Alert("Moving Average for EURUSD=",ma);
//----
//----
return(0);
}
regards,
Sook