Exp_TSI_DeMarker
This EA trades based on the crossover signals of the TSI_DeMarker custom indicator, which combines DeMarker oscillator values with True Strength Index (TSI) smoothing. It opens buy positions when the indicator line crosses above the signal line and sell positions on the opposite crossover, with configurable position closing and money management options.
Open the interactive view (equity curve, symbol switch)Key facts
Backtest results (H1, about 1 year)
| Symbol | P&L | Annual | Max DD | Trades | Win rate | Sharpe | Recovery | Losing streak | Per trade | Status |
|---|---|---|---|---|---|---|---|---|---|---|
| EURUSD | 0.00% | 0.00% | 0.00% | 0 | — | — | — | — | — | Run error |
| GBPUSD | 0.00% | 0.00% | 0.00% | 0 | — | — | — | — | — | Run error |
| USDJPY | 0.00% | 0.00% | 0.00% | 0 | — | — | — | — | — | Run error |
| XAUUSD | 0.00% | 0.00% | 0.00% | 0 | — | — | — | — | — | Run error |
Converted from MQL5 to Python and run with the same rules for every EA. Positions use MT5 lot sizes (100,000 units per FX lot, 100 oz per gold lot) with 1:100 leverage, one order at a time, and a stop-out below 10% of the starting balance. Sharpe is computed from the equity curve. Results marked as unreliable are shown for completeness only.
Blow-up risk: No blow-up pattern found
None of the usual blow-up patterns were found in the code, and the account was not stopped out in our backtests. That is not a guarantee: any EA can lose money.
High: stopped out in our backtest, or martingale/grid sizing without a stop loss. Elevated: martingale or grid sizing with a stop loss, or several positions at once without a stop loss. What the label means and what we found →
Strategy analysis
The strategy concept is based on the crossover of the TSI_DeMarker indicator's main line and signal line, essentially a momentum reversal strategy. Entry conditions: a buy signal triggers when the indicator line is above the signal line and the previous bar's indicator line crossed from below the signal line; conversely, a sell signal triggers when the indicator line is below and crosses from above. Exit conditions include fixed stop loss and take profit in points, plus closing positions on reverse crossover signals when the corresponding close flags are enabled. Position sizing supports four modes: free margin percentage, balance percentage, loss-adjusted free margin percentage, loss-adjusted balance percentage, and fixed lot size. Money management is controlled by the MM parameter defaulting to 0.1 (10% capital allocation). The strategy employs multiple smoothing algorithms (XMA) on DeMarker values, using three different smoothing lengths to generate the main and signal lines, filtering noise and capturing momentum shifts.
Strengths
- Multi-layer smoothing algorithm filters noise and reduces false signals
- Four position sizing modes offer flexibility for different risk preferences
- Buy/sell open and close can be independently controlled for granular strategy configuration
- New bar detection mechanism prevents duplicate signal execution
- Stop loss and take profit are properly set, keeping risk manageable
Weaknesses
- Depends on custom indicator TSI_DeMarker; EA fails if indicator file is missing
- Default SL 1000 and TP 2000 points are large and may not suit all instruments
- No check for existing positions in the same direction, potentially causing duplicate entries
- No spread filter, which could be detrimental during high-spread periods
- Signals only detected on new bar formation, potentially missing entries in fast-moving markets
Possible improvements
- Add position existence check to avoid duplicate entries in the same direction
- Add spread filter to pause trading when spread exceeds a threshold
Risk assessment
Overall risk: Medium
- No same-direction position check may lead to duplicate entries and overexposure
- Depends on external custom indicator; handle failure only logs but doesn't prevent subsequent execution attempts
- Fixed stop loss/take profit not dynamically adjusted for market volatility
Evaluation scores
Parameters
| Parameter | Default | Description |
|---|---|---|
MM | 0.1 | Trade funds ratio; negative = fixed lot |
MMMode | LOT | Position size calculation mode |
StopLoss_ | 1000 | Stop Loss in points |
TakeProfit_ | 2000 | Take Profit in points |
Deviation_ | 10 | Max price slippage in points |
BuyPosOpen | true | Allow buy position open |
SellPosOpen | true | Allow sell position open |
BuyPosClose | true | Allow close long position |
SellPosClose | true | Allow close short position |
InpInd_Timeframe | PERIOD_H8 | Indicator timeframe |
XMA_Method | MODE_SMA | Smoothing algorithm type |
DeMarkerPeriod | 25 | DeMarker period |
MomPeriod | 1 | Momentum period |
XLength1 | 5 | First-level smoothing period |
XLength2 | 8 | Second-level smoothing period |
XLength3 | 20 | Third-level smoothing period |
XPhase | 15 | Smoothing phase parameter |
SignalBar | 1 | Signal reference bar index |
Similar Momentum EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.