ARTICLE SYNOPSIS...Loops: static and dynamic Part 7 by Jim Summers, Ph.D. This month, we develop a loop to manage the calculation of the trading range (TR 1) used in J. Welles Wilder's Directional Movement Index (DMI) system. The previous columns developed the formula for