This Expert Advisor uses three indicators, RSI (Relative Strength Index), fast Moving Average (5 period), slow Moving Average (200 period).
The Idea of this strategy is to determine the general trend by using the slow Moving Average (MA 200). Then buy on the dips and sell on the rises.
Long Entry Rules
Long Exit Rules
Short Entry Rules
Short Exit Rules
input double lot = 1; //Lots input int shortSmaPeriods = 5; //Fast MA period input int longSmaPeriods = 200; //Slow MA period input int RSIPeriods = 2; //RSI Period input int RSILongEntry = 6; //RSI Long Entry input int RSIShortEntry = 95; //RSI Short Entry input int slippage=3; input bool useStopLoss=true; //Use Stop Loss input double stopLossPips=30; //Stop Loss (pips) input bool useTakeProfit=true; //Use Take Profit input double takeProfitPips=60; //Take Profit (pips)
Best results on the EUR/USD pair 1H timeframe. Play with inputs to find your desired results.
Script for checking the LeadLagRelationship indicator (https://www.mql5.com/en/market/product/26229)PS Magicas - Three moving averages
PS Magicas - Three moving averages that give target and possible entries.
A complete Renko chart indicator with wicks. Configure using Tick Size, Pip Size, Points or R. Now with Asymetric Reversals!CDouble & CDoubleVector
A library for common rounding methods used in MQL development, primitive wrapper class for type (double), and vector for CDouble objects. MQL5 and MQL4 compatible!