
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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);