====== Detrended Oscillator ====== FIXME ===== Parameters ===== **Logical rules for Opening Logic Condition slot.** * Detrended Oscillator rises; * Detrended Oscillator falls; * Detrended Oscillator is higher than the zero line; * Detrended Oscillator is lower than the zero line; * Detrended Oscillator crosses the zero line upward; * Detrended Oscillator crosses the zero line downward; * Detrended Oscillator changes its direction upward; * Detrended Oscillator changes its direction downward; **Logical rules for Closing Logic Condition slot.** * Detrended Oscillator rises; * Detrended Oscillator falls; * Detrended Oscillator is higher than the zero line; * Detrended Oscillator is lower than the zero line; * Detrended Oscillator crosses the zero line upward; * Detrended Oscillator crosses the zero line downward; * Detrended Oscillator changes its direction upward; * Detrended Oscillator changes its direction downward; **List box parameters** * **Smoothing method MA1** (Simple). The method of smoothing of MA1. Options: Simple, Weighted, Exponential, Smoothed. * **Smoothing method MA2** (Simple). The method of smoothing of MA2. Options: Simple, Weighted, Exponential, Smoothed. * **Base price** (Close). The price the MA is based on. Options: Open, High, Low, Close, Median, Typical, Weighted. **Numeric box parameters** * **Period MA1** (13). The smoothing period of MA1. Minimum: 1, Maximum: 100. * **Period MA2** (3). The smoothing period of MA2. Minimum: 1, Maximum: 100. ===== Implementation ===== C# source code: [[https://github.com/PopovMP/FSB_Pro_Indicators/blob/master/Indicators/Store/DetrendedOscillator.cs|Detrended Oscillator]]. MQL source code: [[https://github.com/PopovMP/FSB_Expert_Advisor_Code/blob/master/Forexsb.com/Indicators/DetrendedOscillator.mqh|Detrended Oscillator]].