Auto_Tp
This EA automatically sets take-profit and optionally stop-loss on manually opened positions. It also provides optional trailing stop and equity protection features to manage risk on existing trades.
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 does not generate any trading signals or open positions itself; it functions purely as a position management utility. Entry conditions are entirely determined by the trader manually, with no EA involvement in opening logic. Exit conditions include automatic fixed-pip take-profit setting, optional fixed-pip stop-loss, and optional trailing stop functionality. Position sizing is not managed by the EA at all; it only modifies stop-loss and take-profit on existing positions. Money management includes an equity protection feature that closes positions when equity falls below a configurable percentage of account balance, but this only works for positions matching a specific magic number. The overall strategy concept is to assist manual traders by automating TP/SL management to reduce emotional decision-making risks.
Strengths
- Automates TP/SL setting, reducing the risk of forgetting to set them on manual trades
- Trailing stop feature helps lock in floating profits as price moves favorably
- Equity protection mechanism can prevent account blowout in extreme scenarios
- Works on all timeframes and symbols including XAUUSD
- Stop-loss is disabled by default, giving users flexible control
Weaknesses
- Only handles one position per symbol using PositionSelect, missing positions in multi-position scenarios
- Pip calculation uses hardcoded point*10 which is incorrect for 3/5-digit brokers and JPY pairs
- Equity protection only applies to MagicNumber=2025, but manual trades have magic=0, making the feature effectively useless
- No return value check on PositionModify calls, so failed modifications go unnoticed
- Slippage input parameter is declared but never actually used anywhere in the code
Possible improvements
- Use PositionGetTotal to iterate all positions instead of PositionSelect by symbol, enabling proper multi-position management
- Fix pip calculation logic to auto-detect digit precision, correctly handling JPY pairs and various quote formats
- Fix the magic number matching in equity protection to properly identify manually opened trades (magic=0)
Risk assessment
Overall risk: Medium
- PositionSelect only picks one position per symbol, leaving other positions unmanaged with no SL/TP
- Hardcoded pip=point*10 causes TP/SL distances to be 10x smaller than expected on 5-digit brokers
- Equity protection fails to work for manual trades due to magic number mismatch
Evaluation scores
Parameters
| Parameter | Default | Description |
|---|---|---|
TakeProfitPips | 25 | Take profit in points |
UseStopLoss | false | Enable stop loss |
StopLossPips | 12 | Stop loss in points |
UseTrailingStop | false | Enable trailing stop |
TrailingStopPips | 15 | Trailing stop in points |
UseEquityProtection | false | Whether to enable equity protection |
MinEquityPercent | 20.0 | Minimum equity percentage threshold |
Slippage | 3 | Allowed slippage value |
Similar Utility EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.