Gamestudio Links
Zorro Links
Newest Posts
How to buy tomorrow at open?
by frutza. 06/01/23 19:58
Adding Position to Current Trade
by AndrewAMD. 05/30/23 10:34
Unable to change multiplier of contract
by vicknick. 05/30/23 06:56
Wrong Definition of Sharpe Ratio in Zorro?
by vicknick. 05/29/23 06:32
Backtest strategy on bitcoin/crypto
by JamesHH. 05/26/23 04:36
Return type of floor()
by AndrewAMD. 05/25/23 14:17
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
1 registered members (AndrewAMD), 1,065 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
BInnacle, androsa, XquicksnowX, danishinvest, Trail
18942 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Keltner Channel #454323
09/04/15 09:59
09/04/15 09:59
Joined: Sep 2015
Posts: 3
N
Notch Offline OP
Guest
Notch  Offline OP
Guest
N

Joined: Sep 2015
Posts: 3
Hi,

I am trying to create simple technical rule, for example:

bool LongEntryCondition = ((Keltner_Lower(Price, 23, 0.09) Crosses Above "Whatever"

I know how to plot the Keltner bands (see Exhibit B) but I don't know to reference them in a rule similar Exhibit A and can't find any relevant examples in the manual or on this forum. Please help.

Exhibit A:
bool LongEntryCondition = ((Keltner_Lower(Price, 23, 0.09) Crosses Above "Whatever"


Exhibit B:
Keltner(Price,23,0.09);
plot("KeltnerUp",rRealUpperBand,BAND1,0x800000FF);
plot("KelterDown",rRealLowerBand,BAND2,0x0000CC);

Re: Keltner Channel [Re: Notch] #454326
09/04/15 10:33
09/04/15 10:33
Joined: Jul 2000
Posts: 27,947
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,947
Frankfurt
It's the same as in Workshop 5.

Keltner(...);
vars KeltnerLower = series(rRealLowerBand);
if(crossOver(KeltnerLower,Whatever))
...

Re: Keltner Channel [Re: jcl] #454328
09/04/15 10:51
09/04/15 10:51
Joined: Sep 2015
Posts: 3
N
Notch Offline OP
Guest
Notch  Offline OP
Guest
N

Joined: Sep 2015
Posts: 3
Thank you.


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1