hey guys i've been creating a strat im trying to find the 200 day sma and 5 sma and the macd so here's my code but im not getting the values im getting weird static values like 15 for the macd
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.
hey guys i've been creating a strat im trying to find the 200 day sma and 5 sma and the macd so here's my code but im not getting the values im getting weird static values like 15 for the macd
double twosma = iMA(NULL, 3, 200, 0,MODE_SMA,PRICE_CLOSE);
// double ninesma = iMA(NULL, 3, 9, 0,MODE_SMA,PRICE_CLOSE);
double fivesma = iMA(NULL, 3, 5, 0,MODE_SMA,PRICE_CLOSE);
int MacDD = iMACD(_Symbol,_Period,12,26,9, PRICE_CLOSE);
double price = iClose(NULL,0,0);