Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, TedMar, dr_panther), 1,049 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
BB of stochastic #426561
07/24/13 18:55
07/24/13 18:55
Joined: Nov 2012
Posts: 19
Texas, US
D
deweymcg Offline OP
Newbie
deweymcg  Offline OP
Newbie
D

Joined: Nov 2012
Posts: 19
Texas, US
I am trying to code a strategy I am using on MT-4 so I can do back testing etc.

One of the conditions is pretty easy to set up on a chart, but I don't have a clue how to code this. On a chart I add the stochastic indicator then add the Bollinger bands to the same window and apply the BB's to the previous indicator's data (the stoch). The condition I am looking for is when the stoch travels outside the BB.

These PICs should explain it if this doesn't make sense:

http://i.imgur.com/DbtuxPy.jpg

http://i.imgur.com/mCZPXvh.jpg

How do I apply one indicator to another like this?

Thanks

Re: BB of stochastic [Re: deweymcg] #426581
07/25/13 12:52
07/25/13 12:52

A
acidburn
Unregistered
acidburn
Unregistered
A



Should be simple. Check the example at the bottom of this page: http://zorro-trader.com/manual/en/ta.htm

It says: BBands(series(price()),30,2,2,MAType_SMA); meaning that's the Bollinger Band of the price series.

As you would like to apply BB to the Stochastic indicator instead of price, just replace price() with Stoch() call and that should be it. Stoch() parameters are explained on the same page.


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