Jim Dean![]() Sage ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3433 Joined: 3/13/2006 Location: L'ville, GA ![]() | Note that default for ATT is usually 14, not 4. And I thought you realized that your ATR/C formula was different than MattG’s Indicator … MattG’s has 5-period SMA smoothing. That is: Sma( ATR(14)/C, 5) … protected with iif for division by zero that would be: iif( math.min(C,5) <= 0, 0, Sma( ATR(14)/C, 5) ) … that formula provides more protection than MattG’s does, but should match its results precisely. And - running without iif versus with iif should make ZERO difference. The only places the iif takes effect are on bars where the exchange was closed for that day, or other odd data issues appear. I suggest you redo your tests. |