Exp_KPrmSt
This EA trades based on the crossover of two buffers from the custom KPrmSt indicator. It opens buy positions when the first buffer crosses above the second and sell positions when it crosses below, with configurable stop loss, take profit, and position management settings.
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
This EA employs a dual-line crossover trend-following strategy based on the custom KPrmSt indicator. Entry conditions: a buy signal is generated when Ma1[1]>Ma2[1] (the first buffer is above the second on the previous bar) AND Ma1[0]<=Ma2[0] (the first buffer was at or below the second on the bar before that), confirming a golden cross. Sell entry is the reverse — a death cross confirmation. Exit conditions are triggered by opposing crossover signals, where a bullish crossover closes short positions and a bearish crossover closes long positions. Fixed stop loss (1000 points) and take profit (2000 points) are applied to all trades for risk management. Position sizing is controlled by the MM parameter, supporting both fixed lot size (LOT mode) and margin-based sizing. The strategy uses the IsNewBar mechanism to ensure signals are calculated only once per bar, preventing duplicate trades, and checks BarsCalculated to verify indicator data readiness before processing. Overall, this is a classic dual-moving-average crossover trend-following system with straightforward logic.
Strengths
- Clean and straightforward strategy logic based on crossover signals, easy to understand and maintain
- Complete stop loss and take profit mechanism with 1000pt SL / 2000pt TP, providing a 1:2 risk-reward ratio
- IsNewBar mechanism ensures signals are calculated only once per bar, effectively preventing duplicate entries
- Flexible position sizing supporting both fixed lot and margin-based modes
- Independent enable/disable controls for buy/sell open and close operations, allowing directional bias customization
Weaknesses
- Depends on the custom KPrmSt indicator whose internal logic is opaque, making signal quality hard to evaluate
- Lacks market filter mechanisms (e.g., volatility filter, trend strength confirmation), prone to frequent losses in ranging markets
- Fixed point stop loss and take profit without ATR-based dynamic adaptation performs poorly across different volatility regimes
- No trading session filter, may generate poor signals during low-liquidity periods
- No position scaling logic (add/reduce), cannot optimize exposure during trend development
Possible improvements
- Add a trend filter indicator (e.g., ADX or higher timeframe MA) to reduce false signals in ranging markets
- Replace fixed SL/TP with ATR-based dynamic stop loss and take profit for better adaptation to varying volatility
- Add trading session filter and spread filter to avoid trading during low-liquidity and high-spread periods
Risk assessment
Overall risk: Medium
- Fixed SL/TP may be misaligned under different volatility regimes — too tight in high volatility leading to frequent stop-outs
- Lacks position check before opening, risk of over-exposure through duplicate entries on existing positions
- Depends on custom indicator with no fault-tolerance retry mechanism — EA initialization fails if indicator fails to load
Evaluation scores
Parameters
| Parameter | Default | Description |
|---|---|---|
MM | 0.1 | Money management ratio for lot calculation |
MMMode | LOT | MM mode: Free margin/Balance/Post-loss margin/Post-loss balance/Fixed lot |
StopLoss_ | 1000 | Stop loss in points |
TakeProfit_ | 2000 | Take profit in points |
Deviation_ | 10 | Maximum allowed slippage in points |
BuyPosOpen | true | Allow opening long positions |
SellPosOpen | true | Allow opening short positions |
BuyPosClose | true | Allow closing long positions |
SellPosClose | true | Allow closing short positions |
InpInd_Timeframe | PERIOD_H6 | Indicator calculation timeframe |
SignalBar | 1 | Bar index for signal detection |
Per1 | 14 | KPrmSt indicator parameter 1 |
Per2 | 3 | KPrmSt indicator parameter 2 |
Per3 | 3 | KPrmSt indicator parameter 3 |
Per4 | 5 | KPrmSt indicator parameter 4 |
Similar Trend Following EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.