====== Price MA Relation ====== FIXME ===== Parameters ===== **Logical rules for Opening Logic Condition slot.** * Bar price is higher than MA; * Bar price is lower than MA; **Logical rules for Closing Logic Condition slot.** * Bar price is higher than MA; * Bar price is lower than MA; **List box parameters** * **MA base price** (Close). Base price of the MA Options: Close. * **MA method** (Simple). Method for calculating the MA Options: Simple, Weighted, Exponential, Smoothed. * **Bar reference price** (Close). Bar reference price. Options: Open, High, Low, Close, Median, Typical, Weighted. **Numeric box parameters** * **MA period** (13). Bars used for calculating the MA Minimum: 1, Maximum: 200. ===== Implementation ===== C# source code: [[https://github.com/PopovMP/FSB_Pro_Indicators/blob/master/Indicators/Store/PriceMARelation.cs|Price MA Relation]]. MQL source code: [[https://github.com/PopovMP/FSB_Expert_Advisor_Code/blob/master/Forexsb.com/Indicators/PriceMARelation.mqh|Price MA Relation]].