When starting in the "experts" we get an error:
2015.02.22 19:37:58.619 MA_Angle (EURUSD,H1) cannot load indicator 'Moving Average' [4804]
Error:
double MA_first = iMA(_Symbol, _Period, MA_period, 0, MA_type, i - (AngleBars - 1));
double MA_second = iMA(_Symbol, _Period, MA_period, 0, MA_type, i);
Should be something like this:
double MA_first = iMA(_Symbol, _Period, MA_period, 0, MA_type, PRICE_CLOSE);
double MA_second = iMA(_Symbol, _Period, MA_period, 0, MA_type, PRICE_OPEN);
ah ofc sorry I was still thinking I was using MQL4 thank you for that :)
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
Hi guys,
I built this indicator for calculating an angle of moving average over a given number of bars but when I try and debug it using breakpoints it won't start at all. The sub_window loads up but nothing else happens. I don't know whats wrong could someone help. Could someone check that my code is correct?
P.S. a previous indicator of a similar nature worked so I'm not sure why this one isn't working.
EDIT: now no indicator at all will load include the MT5 ones not sure whats going on tbh.