I am trying to calculate iBandsOnArray for MQL5 but i am only able to get the middle line value in my expert my upper and lower line keep giving me wrong values
i think the problem is from the standard deviation
if i can get a standard deviation function that i can apply to the current bb mid value, i can get it to work
The problem i have with standard deviation is that it expects whole arrays for price and maprice and i only have current bb mid value and current oscillator value
is there a way i can use only current and previous price and maprice values to get deviation?
my code is below
have you a solution?
I need also to use bollinger on array and I've problem with stdDev...
have you a solution?
I need also to use bollinger on array and I've problem with stdDev...
none
hopefully MQL will add it to MT5 soon
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I am trying to calculate iBandsOnArray for MQL5 but i am only able to get the middle line value in my expert my upper and lower line keep giving me wrong values
i think the problem is from the standard deviation
if i can get a standard deviation function that i can apply to the current bb mid value, i can get it to work
The problem i have with standard deviation is that it expects whole arrays for price and maprice and i only have current bb mid value and current oscillator value
is there a way i can use only current and previous price and maprice values to get deviation?
my code is below