Exp_FineTuningMA
This EA trades based on the FineTuningMA custom indicator, opening buy positions when the indicator values show an uptrend (Value[0]>Value[1]<Value[2]) and sell positions when a downtrend is detected (Value[0]<Value[1]>Value[2]). It uses configurable money management modes, stop loss/take profit, and processes signals only on new bars for efficiency.
Open the interactive view (equity curve, symbol switch)Key facts
Backtest results (H1, about 1 year)
Not backtested yet — this EA could not be converted automatically.
Strategy analysis
The strategy concept is trend following based on the FineTuningMA custom indicator, which fine-tunes a moving average using three rank parameters and three shift parameters for adjustable smoothing. Entry conditions: a buy signal triggers when Value[1]<Value[2] and Value[0]>Value[1], indicating the indicator has turned from declining to rising (uptrend reversal); a sell signal triggers when Value[1]>Value[2] and Value[0]<Value[1], indicating a downtrend reversal. Exit conditions rely on fixed stop loss and take profit settings, with additional exit signals triggered by opposing trend signals (BuyPosClose/SellPosClose). Position sizing supports five modes: based on free margin, balance, loss-adjusted free margin, loss-adjusted balance, and fixed lot size. Money management is controlled by the MM parameter (default 0.1) combined with the MarginMode selection for specific calculation methods. The strategy only calculates signals on new bar formation rather than every tick, improving computational efficiency and reducing unnecessary trade operations.
Strengths
- Clear strategy logic based on indicator inflection points for trend reversal detection, with strong interpretability
- Supports five position sizing modes, flexibly adapting to different risk preferences
- Only calculates signals on new bar formation, avoiding redundant per-tick trading and improving efficiency
- Buy/sell open and close can be independently controlled, enabling one-directional trading or signal-only exits
- Uses SignalBar=1 to avoid signal flickering from uncompleted bars
Weaknesses
- Stop loss of 1000 points and take profit of 2000 points are large and may not suit all instruments or volatility environments
- No spread filter, potentially leading to unfavorable entries on high-spread instruments
- No position check logic, may open duplicate positions in the same direction when already holding
- Depends on the external custom indicator FineTuningMA; EA fails if the indicator file is missing
- No trailing stop functionality, profitable positions may give back significant gains on trend pullbacks
Possible improvements
- Add position check logic to avoid opening duplicate positions in the same direction
- Add a spread filter to pause opening when spread exceeds a threshold
- Add trailing stop functionality to protect accumulated profits
Risk assessment
Overall risk: Medium
- Lack of position check may lead to duplicate positions in the same direction, increasing risk exposure
- Fixed stop loss/take profit in points doesn't adapt to different instruments' volatility, potentially causing stops that are too wide or too narrow
Evaluation scores
Parameters
| Parameter | Default | Description |
|---|---|---|
MM | 0.1 | Money management: negative=fixed lots, positive=deposit ratio |
MMMode | LOT | Lot calculation mode (free margin/balance/deduct-loss margin/deduct-loss balance/fixed lots) |
StopLoss_ | 1000 | Stop loss in points |
TakeProfit_ | 2000 | Take profit in points |
Deviation_ | 10 | Max price slippage in points |
BuyPosOpen | true | Allow opening long positions |
SellPosOpen | true | Allow opening short positions |
BuyPosClose | true | Allow signal-based closing of long positions |
SellPosClose | true | Allow signal-based closing of short positions |
InpInd_Timeframe | PERIOD_H4 | Indicator timeframe |
FTMA | 10 | FineTuningMA period parameter |
rank1 | 2 | FineTuningMA 1st-order rank parameter |
rank2 | 2 | FineTuningMA 2nd-order rank parameter |
rank3 | 2 | FineTuningMA 3rd-order rank parameter |
shift1 | 1 | FineTuningMA 1st-order shift parameter |
shift2 | 1 | FineTuningMA 2nd-order shift parameter |
shift3 | 1 | FineTuningMA 3rd-order shift parameter |
IPC | PRICE_TYPICAL | Price type used for indicator calculation |
SignalBar | 1 | Signal bar index (0=current, 1=completed) |
Similar Trend Following EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.