====== Donchian Channel ====== 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** * **Base price** (High & Low). Indicator uses High and Low prices. Options: High & Low. **Numeric box parameters** * **Period** (10). The width of the range we are looking for an extreme in. Minimum: 1, Maximum: 200. * **Shift** (0). The number of bars to shift with. Minimum: 0, Maximum: 200. ===== Implementation ===== C# source code: [[https://github.com/PopovMP/FSB_Pro_Indicators/blob/master/Indicators/Store/DonchianChannel.cs|Donchian Channel]]. MQL source code: [[https://github.com/PopovMP/FSB_Expert_Advisor_Code/blob/master/Forexsb.com/Indicators/DonchianChannel.mqh|Donchian Channel]].