Hello,
How can I find out what the actual formula is for calculating the ATR with the average type HULL? The think script doesn't include a formula and I don't know which file in the program files to reference. The only thinkscript code that comes up for the ATR is this. It's the code for the ATR that comes preloaded with TOS. How can I find the full formula for this?
How can I find out what the actual formula is for calculating the ATR with the average type HULL? The think script doesn't include a formula and I don't know which file in the program files to reference. The only thinkscript code that comes up for the ATR is this. It's the code for the ATR that comes preloaded with TOS. How can I find the full formula for this?
Code:
#
# Charles Schwab & Co. (c) 2014-2025
#
declare lower;
input length = 14;
input averageType = AverageType.HULL;
plot ATR = MovingAverage(averageType, TrueRange(high, close, low), length);
ATR.SetDefaultColor(GetColor(8));