- ago
I'm using B106 (latest).

atrMult and atrPeriod parameters don't work, neither during optimization, nor if I drop the indicator on a chart. Period paramter works fine in both cases.

Thank you
0
51
Solved
3 Replies

Reply

Bookmark

Sort
Cone8
 ( 4.92% )
- ago
#1
When "Use ATR Bands" isn't checked, ATR isn't used.

In code, "not checked" is equivalent to this:
CODE:
ind2 = new KeltnerUpper(bars,20,2.00,10,false); //OR this ind2 = new KeltnerUpper(bars,20,2.00,10);


To use ATR, check the box or in code, pass true to the last parameter.
CODE:
ind2 = new KeltnerUpper(bars,20,2.00,10,true);
0
- ago
#2
Thank you for the explanation!

Just wondering, what happens if useATRBand = false? I checked, and it doesn't mean that atrMult = 2 and atrPeriod = 10 are used.
0
Cone8
 ( 4.92% )
- ago
#3
Right. There is a [lacking] description in the indicator section that we can improve on.

IS:
Keltner Bands are bands that are based on a simple moving average. Optionally, turn them into volatility bands based on an exponential moving average and average true range.

WILL BE:
Keltner Bands were first described by Chester W. Keltner in his book How to Make Money in Commodities. They are fixed bands plotted above and below SMA(AveragePriceHLC, period). The Upper/Lower bands are calculated by adding/subtracting SMA(High - Low, period) from the center SMA.

By passing true to useATRBands, a second version of Keltner bands (by Linda Raschke) are returned as volatility bands. These are based on EMA(Close, period) and adding/subtracting atrMult * ATR(Close, atrPeriod).
2
Best Answer

Reply

Bookmark

Sort