Gamestudio Links
Zorro Links
Newest Posts
MRC.c and WFO
by 11honza11. 11/18/25 15:22
webGL
by Ice2642. 11/17/25 21:27
Camera always moves upwards?
by NeoDumont. 11/17/25 09:56
Future of ZorroHFT
by TipmyPip. 11/16/25 13:52
COT Download with Quandl does not work
by Petra. 11/15/25 09:35
Training with the R bridge does not work
by Petra. 11/15/25 09:31
Zorro 2.70
by jcl. 11/15/25 08:43
brokerCommand PLOT_HLINE parameters
by M_D. 11/13/25 10:42
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (AndrewAMD), 32,145 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
SkinnyApe, tritom, sheliepaley, Blueguy, blobplayintennis
19179 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Bollinger Bands #423445
05/29/13 22:23
05/29/13 22:23
Joined: Apr 2013
Posts: 107
UK
G
Geek Offline OP
Member
Geek  Offline OP
Member
G

Joined: Apr 2013
Posts: 107
UK
Quote:
vars Close = series(priceClose());
vars Price = series(price());

var *BBAnd1Upper = series(rRealUpperBand);
var *BBAnd1Lower = series(rRealLowerBand);


if (priceClose() <= (rRealLowerBand))
enterLong();

else if (priceClose() >= (rRealUpperBand))
enterShort();



I am just testing out the Bollinger Bands indicators, and the above part of the code seems to work.

But I am not sure if there something missing from this code? Such as the below, which I found from an older post on this forum..

Quote:
BBands(Close,19,1,1,MAType_SMA));


I have tried to put in this part above but it gives me a syntax error... Just want to make sure that I am going about this correctly??

Cheers.

Re: Bollinger Bands [Re: Geek] #423461
05/30/13 10:22
05/30/13 10:22
Joined: Jul 2000
Posts: 28,030
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,030
Frankfurt
Yes, you must call the BBands function before you can use rRealLowerBand or rRealUpperBand. See the indicators.c example.

Re: Bollinger Bands [Re: jcl] #423937
06/08/13 13:03
06/08/13 13:03
Joined: Apr 2013
Posts: 107
UK
G
Geek Offline OP
Member
Geek  Offline OP
Member
G

Joined: Apr 2013
Posts: 107
UK
Thank you, this is now working.


Moderated by  Petra 

Gamestudio download | 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