Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/28/24 09:55
basik85278
by basik85278. 04/28/24 08:56
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (SBGuy, Quad), 768 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 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