====== Moving Average ====== FIXME ===== Parameters ===== **Logical rules for Opening Point of the Position slot.** * Enter the market at Moving Average; **Logical rules for Opening Logic Condition slot.** * Moving Average rises; * Moving Average falls; * The bar opens above Moving Average; * The bar opens below Moving Average; * The bar opens above Moving Average after opening below it; * The bar opens below Moving Average after opening above it; * The position opens above Moving Average; * The position opens below Moving Average; **Logical rules for Closing Point of the Position slot.** * Exit the market at Moving Average; **Logical rules for Closing Logic Condition slot.** * Moving Average rises; * Moving Average falls; * The bar closes below Moving Average; * The bar closes above Moving Average; **List box parameters** * **Smoothing method** (Simple). The smoothing method of Moving Average. Options: Simple, Weighted, Exponential, Smoothed. * **Base price** (Close). The price Moving Average is based on. Options: Open, High, Low, Close, Median, Typical, Weighted. **Numeric box parameters** * **Period** (14). Moving Average period. Minimum: 1, Maximum: 200. * **Shift** (0). How many bars to shift with. Minimum: 0, Maximum: 200. ===== Implementation ===== C# source code: [[https://github.com/PopovMP/FSB_Pro_Indicators/blob/master/Indicators/Store/MovingAverage.cs|Moving Average]]. MQL source code: [[https://github.com/PopovMP/FSB_Expert_Advisor_Code/blob/master/Forexsb.com/Indicators/MovingAverage.mqh|Moving Average]].