Anyone know why the Keltner results in ToS are so different from those at stockcharts.com? See pix for one example, plus the ToS code I'm using that allows for 3 different inputs to match what stockcharts allows. i've tried changing up all those average types but that doesn't seem to matter. Any other possibilities for why and/or what to do about it? generally speaking, i believe the stockcharts numbers are the accepted standard, so it'd be nice to get ToS to align with them.
for the example, the stockcharts low band reading at the close is $60.79. the tos reading is $62.52.
thanks!
declare upper;
declare weak_volume_dependency;
input displace = 0;
input factor = 3;
input length = 20;
input lengthATR = 10;
input price = close;
input averageType = AverageType.EXPONENTIAL;
input trueRangeAverageType = AverageType.WILDERS;
def shift = factor * MovingAverage(trueRangeAverageType, TrueRange(high, close, low), length);
def average = MovingAverage(averageType, price, length);
plot Avg = average[-displace];
Avg.SetDefaultColor(GetColor(1));
plot Upper_Band = average[-displace] + shift[-displace];
Upper_Band.SetDefaultColor(GetColor(8));
plot Lower_Band = average[-displace] - shift[-displace];
Lower_Band.SetDefaultColor(GetColor(5));
for the example, the stockcharts low band reading at the close is $60.79. the tos reading is $62.52.
thanks!
declare upper;
declare weak_volume_dependency;
input displace = 0;
input factor = 3;
input length = 20;
input lengthATR = 10;
input price = close;
input averageType = AverageType.EXPONENTIAL;
input trueRangeAverageType = AverageType.WILDERS;
def shift = factor * MovingAverage(trueRangeAverageType, TrueRange(high, close, low), length);
def average = MovingAverage(averageType, price, length);
plot Avg = average[-displace];
Avg.SetDefaultColor(GetColor(1));
plot Upper_Band = average[-displace] + shift[-displace];
Upper_Band.SetDefaultColor(GetColor(8));
plot Lower_Band = average[-displace] - shift[-displace];
Lower_Band.SetDefaultColor(GetColor(5));