Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

MetaTrader 5 Expert Advisor | Exp F2a AO

Trading system using the F2a_AO semaphore, signal indicator. The signals taken from the indicator are subject to the additional filtering.

The direction of the close candlestick of the higher timeframe serves as a filter. The Expert Advisor has two input parameters for this candlestick.

//+----------------------------------------------+
//| Input parameters for the trend candlestick   |
//+----------------------------------------------+
input ENUM_TIMEFRAMES Inp_Timeframe=PERIOD_D1;     //the trend candlestick timeframe
input uint TrendBar=1;                             //the trend bar index

Place F2a_AO.ex5 compiled file to the terminal_data_folder\MQL5\Indicators.

It should be considered that the TradeAlgorithms.mqh library file is designed to use Expert Advisors by brokers who offer nonzero spread and ability to set Stop Loss and Take Profit simultaneously opening a position. Other variants of this library can be downloaded from https://www.mql5.com/en/code/1578.

Default Expert Advisor's input parameters have been used during the tests shown below. Stop Loss and Take Profit have not been used during the tests.

MetaTrader Experts, Indicators, Scripts and Libraries

Fig. 1. The instances of history of deals in the chart

Testing results for 2011 at USDCHF H12:

MetaTrader Experts, Indicators, Scripts and Libraries

Fig. 2. Chart of testing results

1654

Best MetaTrader Indicators + Profitable Expert Advisors