====== Envelopes ====== FIXME ===== Parameters ===== **Logical rules for Opening Point of the Position slot.** * Enter long at Upper Band; * Enter long at Lower Band; **Logical rules for Opening Logic Condition slot.** * The bar opens below Upper Band; * The bar opens above Upper Band; * The bar opens below Lower Band; * The bar opens above Lower Band; * The position opens below Upper Band; * The position opens above Upper Band; * The position opens below Lower Band; * The position opens above Lower Band; * The bar opens below Upper Band after opening above it; * The bar opens above Upper Band after opening below it; * The bar opens below Lower Band after opening above it; * The bar opens above Lower Band after opening below it; **Logical rules for Closing Point of the Position slot.** * Exit long at Upper Band; * Exit long at Lower Band; **Logical rules for Closing Logic Condition slot.** * The bar closes below Upper Band; * The bar closes above Upper Band; * The bar closes below Lower Band; * The bar closes above Lower Band; **List box parameters** * **Smoothing method** (Simple). The method of smoothing of central Moving Average. Options: Simple, Weighted, Exponential, Smoothed. * **Base price** (Close). The price the central Moving Average is based on. Options: Open, High, Low, Close, Median, Typical, Weighted. **Numeric box parameters** * **MA period** (14). The central Moving Average period. Minimum: 1, Maximum: 200. * **Deviation %** (1). Deviation from the central MA in per cents. Minimum: 0.01, Maximum: 20. ===== Implementation ===== C# source code: [[https://github.com/PopovMP/FSB_Pro_Indicators/blob/master/Indicators/Store/Envelopes.cs|Envelopes]]. MQL source code: [[https://github.com/PopovMP/FSB_Expert_Advisor_Code/blob/master/Forexsb.com/Indicators/Envelopes.mqh|Envelopes]].