Thank you for putting me on right tracks! After reading your post I started to look up for Wilders smoothing formula and found that:
Wilders(Array, X) = EMA(Array, 2 * X - 1) Thanks again & regards, Tomek 2008/12/7 Thomas Z. <[EMAIL PROTECTED]> > Hello, > > the ATR uses Wilders smoothing while you used simple smoothing. Here is the > code that matches the build-in calculation. > > TrueRange = Max( H - L, Max( abs( H - Ref( C, -1 ) ), abs( L - Ref( C, -1 ) > ) ) ); > myATR = Wilders(TrueRange, 3); > Plot(myATR, "myATR", colorBlue, 1); > > Thomas > www.PatternExplorer.com >
