iBandsOnArray uses an int re: deviation

 
double iBandsOnArray( double array[], int total, int period, int deviation, int bands_shift, int mode, int shift)
double iEnvelopes( string symbol, int timeframe, int ma_period, int ma_method, int ma_shift, int applied_price, double deviation, int mode, int shift)

How do you make changes so deviation can be 0.5?


 
use 1 dev, get the band. Use iMAOnArray to compute the centerline. stdX = ima + (band-ima)*X
Reason: