Exp_ASCtrend
This EA trades based on the ASCtrend custom indicator signals, opening buy positions on up signals and sell positions on down signals. It supports configurable money management modes, stop loss/take profit, and optional position closing on opposite signals. The strategy processes signals on new bars and includes a historical scan for close signals when both open and close permissions are enabled.
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 | — | — | — | — | — | Not convertible yet |
| GBPUSD | 0.00% | 0.00% | 0.00% | 0 | — | — | — | — | — | Not convertible yet |
| USDJPY | 0.00% | 0.00% | 0.00% | 0 | — | — | — | — | — | Not convertible yet |
| XAUUSD | 0.00% | 0.00% | 0.00% | 0 | — | — | — | — | — | Not convertible yet |
Why this EA never traded: no entry rule survived the conversion.
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
This EA uses the ASCtrend indicator as its core signal source, which calculates trend direction based on the RISK parameter and generates up/down signals at key turning points. Entry conditions: a buy position is opened when the ASCtrend indicator's up signal buffer (buffer 1) produces a non-zero, non-EMPTY_VALUE on the specified signal bar, and a sell position is opened when the down signal buffer (buffer 0) produces a valid value. Exit conditions include hardcoded stop loss and take profit parameters, plus optional opposite-signal closing where the EA scans historical bars for reverse signals when both open and close permissions are enabled. Position sizing is controlled by the MM parameter which sets the trading volume ratio, supporting five money management modes: free margin percentage, balance percentage, loss-adjusted free margin, loss-adjusted balance, and fixed lot size. The EA uses an IsNewBar mechanism to ensure signals are processed only once per bar, preventing duplicate entries, and employs a Recount flag to retry on data fetch failures. Signal timestamps are recorded for trade execution timing reference.
Strengths
- Uses IsNewBar mechanism to ensure signals are processed only once per bar, preventing duplicate entries
- Provides five money management modes for flexible risk preference adaptation
- Supports independent control of open and close directions for flexible long/short strategy combinations
- Stop loss and take profit parameters are complete with a basic risk control framework
- Recount mechanism automatically retries on data fetch failures, enhancing robustness
Weaknesses
- Depends on the external custom ASCtrend indicator with opaque logic, making signal quality hard to verify
- The historical bar scanning loop for close signals has no upper bound protection, potentially causing performance issues
- No spread filter mechanism, which may be disadvantageous on small timeframes or high-slip environments
- No check for existing positions in the same direction, potentially causing duplicate entries
- SignalBar=0 allows trading on unclosed bars where signals may fluctuate and cause misjudgment
Possible improvements
- Add position existence check logic to prevent duplicate entries in the same direction
- Add a maximum iteration limit to the historical bar scanning loop to prevent performance bottlenecks
- Add spread filter and trading session filter to improve entry quality
Risk assessment
Overall risk: Medium
- Historical bar scanning loop has no upper limit, which could cause EA lag or timeout in extreme cases
- Lack of same-direction position check may lead to consecutive entries during trending markets, causing excessive risk exposure
- Default SL 1000/TP 2000 points are large values that may not be suitable for all instruments
Evaluation scores
Parameters
| Parameter | Default | Description |
|---|---|---|
MM | 0.1 | Money management ratio or fixed lot size |
MMMode | LOT | Lot 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 |
BuyPosOpen | true | Allow opening long positions |
SellPosOpen | true | Allow opening short positions |
BuyPosClose | true | Allow reverse closing long positions |
SellPosClose | true | Allow reverse closing short positions |
InpInd_Timeframe | PERIOD_H1 | ASCtrend indicator timeframe |
RISK | 4 | ASCtrend risk parameter affecting signal sensitivity |
SignalBar | 1 | Signal bar index; 0=current, 1=last closed bar |
Similar Trend Following EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.