====== Average True Range ====== FIXME ===== Parameters ===== **Logical rules for Opening Logic Condition slot.** * ATR rises; * ATR falls; * ATR is higher than the Level line; * ATR is lower than the Level line; * ATR crosses the Level line upward; * ATR crosses the Level line downward; * ATR changes its direction upward; * ATR changes its direction downward; **Logical rules for Closing Logic Condition slot.** * ATR rises; * ATR falls; * ATR is higher than the Level line; * ATR is lower than the Level line; * ATR crosses the Level line upward; * ATR crosses the Level line downward; * ATR changes its direction upward; * ATR changes its direction downward; **List box parameters** * **Smoothing method** (Simple). The Moving Average method used for smoothing the ATR. Options: Simple, Weighted, Exponential, Smoothed. * **Base price** (Bar range). ATR uses the range of the current bar Options: Bar range. **Numeric box parameters** * **Smoothing period** (14). The period of ATR smoothing. Minimum: 1, Maximum: 200. * **Level [points]** (100). A critical level in points(for the appropriate logic). Minimum: 0, Maximum: 2000. ===== Implementation ===== C# source code: [[https://github.com/PopovMP/FSB_Pro_Indicators/blob/master/Indicators/Store/AverageTrueRange.cs|Average True Range]]. MQL source code: [[https://github.com/PopovMP/FSB_Expert_Advisor_Code/blob/master/Forexsb.com/Indicators/AverageTrueRange.mqh|Average True Range]].