A Gold Trend Story
A Gold Trend Story is a multi-currency Expert Advisor developed on the basis of two Moving Average indicators: LWMA and SMA.
A Gold Trend Story Expert Advisor trades on 8 currency pairs (EURUSD, GBPUSD, USDCHF, USDJPY, AUDUSD, EURJPY, AUDJPY and GBPJPY) that can be selected in the parameters and timeframe H1. When a signal generated by LWMA and SMA appears, it places a position with Take Profit and Stop Loss. Position are closed by Take Profit, Stop Loss or according to opposite trend or signal.
If Auto_TPSL is set to true, Take Profit and Stop Loss values are placed according to ATR value, otherwise they can be set manually. Optimization of the Risk Reward parameter makes this Expert Advisor powerful. The volume of positions is calculated on the basis of free margin. During this back test, the maximum drawdown reached about 10%, while the absolute drawdown is about 7%.
- MM - volume calculation based on free margin (true or false);
- Risk - risk (in percentage terms);
- Lots - trade volume in lots if the MM parameter is set to false;
- Volume_Max - maximal volume for a deal;
- Volume_Limit - maximum allowed aggregate volume of an open position in one direction;
- ECN - work on ECN broker if selected true, default is false;
- Magic - magic number.
- Symbol1 .. Symbol8 - selectable currency pairs;
- Trade1 .. Trade8 - enabling/disabling trading for the selected symbols;
- MaxDeal1 ... MaxDeal8 - maximum allowed number of deals;
- LWMA_Period1 ... LWMA_Period8 - period of LWMA;
- SMA_Period1 ... SMA_Period8 - period of SMA;
- Auto_TPSL1 ... Auto_TPSL8 - if true, Take Profit and Stop Loss are calculated on the basis of ATR;
- ATR_Period1 ... ATR_Period8 - period of ATR;
- RR_Ratio1 ..RR_Ratio8 - Risk Reward Ratio, ratio between Take Profit and Stop Loss;
- TP1 ... TP8 - Take Profit in points;
- SL1 ... SL8 - Stop Loss in points;
- UseTrailingStop1 ... UseTrailingStop8 - Trailing Stop usage (true or false);
- TrailingStop1 ... TrailingStop8 - Trailing Stop value in pips.
- Closed_by_Opposite_Trend1 ... Closed_by_Opposite_Trend8 - if true, all open position are closed at trend reversal;
- Closed_by_Opposite_Signal1 ... Closed_by_Opposite_Signal8 - if true, all open position are closed if a reverse signal appears.
Expert Advisor Test Results:
A Gold Trend Story having initial deposit of $10 000 earned $9 145 000 in the strategy tester on time frame H1 in the period from 1-st January 2012 to 24nd February 2013. Net income during testing comprised 91,450% in about 1.1 years. Absolute drawdown is 7%, maximum drawdown is 10%.
Special thanks to Stephan Thren from Germany for his contribution.
- Symbol recognition.