Gamestudio Links
Zorro Links
Newest Posts
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
M1 Oversampling
by 11honza11. 04/20/24 20:57
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, rki), 390 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Help for Bollinger Band Width #466965
07/10/17 21:59
07/10/17 21:59
Joined: Jun 2015
Posts: 6
A
Alessio Offline OP
Newbie
Alessio  Offline OP
Newbie
A

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

Thanks

Re: Help for Bollinger Band Width [Re: Alessio] #467017
07/12/17 15:49
07/12/17 15:49
Joined: Jun 2017
Posts: 78
B
BobbyT Offline
Junior Member
BobbyT  Offline
Junior Member
B

Joined: Jun 2017
Posts: 78
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

Re: Help for Bollinger Band Width [Re: BobbyT] #467059
07/14/17 05:54
07/14/17 05:54
Joined: Jun 2015
Posts: 6
A
Alessio Offline OP
Newbie
Alessio  Offline OP
Newbie
A

Joined: Jun 2015
Posts: 6
Thanks for your help, I'll try to write something.

Re: Help for Bollinger Band Width [Re: Alessio] #467061
07/14/17 06:51
07/14/17 06:51
Joined: Feb 2017
Posts: 369
D
Dalla Offline
Senior Member
Dalla  Offline
Senior Member
D

Joined: Feb 2017
Posts: 369
Most sources I find use the formula

Band Width = (Upper Bollinger Band - Lower Bollinger Band) / Middle Bollinger Band


Moderated by  Petra 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1