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
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
Rename
When "Use ATR Bands" isn't checked, ATR isn't used.
In code, "not checked" is equivalent to this:
To use ATR, check the box or in code, pass true to the last parameter.
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);
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.
Just wondering, what happens if useATRBand = false? I checked, and it doesn't mean that atrMult = 2 and atrPeriod = 10 are used.
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).
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).
Your Response
Post
Edit Post
Login is required