If you’re a trader using MetaTrader 5, you’ll want to check out Smatf, an innovative Expert Advisor developed by zotkindm. You can find the source code here.
How It Works
Smatf takes a deep dive into market trends by analyzing multiple Moving Averages across three different timeframes—specifically, it uses five Moving Averages on three timeframes. Additionally, it leverages the Awesome Oscillator (AO) indicators, totaling two across two timeframes. The strength of the trading signals is determined by the indicators' states (high or low), allowing you to receive input signals based on all signals or exclusively high signals.
Fig. 1. Trades executed in the Expert Advisor tester.

Fig. 2. Performance results of the Expert Advisor for the last month (September 2012) on EUR/USD M15.
Key Parameters
- TF1, TF2, TF3: Timeframes for analysis.
- maTrendPeriodv_1 to maTrendPeriodv_5: Periods for the Moving Averages.
- Shift: The bar on which the indicators are assessed: 0 for the forming bar, 1 for the first formed bar.
- OpenLevel: Determines the opening level (0 or 1).
- CloseLevel: Defines the closing level (0 or 1 for standard close, 2 to turn off).
- Lots: Defines the lot size.
- StopLoss: Stop Loss in points (0 means no Stop Loss).
- TakeProfit: Take Profit in points (0 means no Take Profit).
- Trailing: Trailing stop level; when set to 0, trailing stop is disabled.
Comments 0