Help for Bollinger Band Width

Posted By: Alessio

Help for Bollinger Band Width - 07/10/17 21:59

Hi guys, I'd like write the code for Bollinger Band Width indicator, but I haven't the ability.
Has someone written yet?

Thanks
Posted By: BobbyT

Re: Help for Bollinger Band Width - 07/12/17 15:49

Here is the call to bollinger bands from the manual:
Code:
BBands(vars Data, int TimePeriod, var NbDevUp, var NbDevDn, int MAType)


The return values are stored in: rRealUpperBand, rRealLowerBand, rRealMiddleBand.

Call BBands and subtract rRealLowerBand from rRealUpperBand and viola, bollinger band width.

Cheers,
BobbyT
Posted By: Alessio

Re: Help for Bollinger Band Width - 07/14/17 05:54

Thanks for your help, I'll try to write something.
Posted By: Dalla

Re: Help for Bollinger Band Width - 07/14/17 06:51

Most sources I find use the formula

Band Width = (Upper Bollinger Band - Lower Bollinger Band) / Middle Bollinger Band
© 2024 lite-C Forums