StrategyTesterPracticeTrade
This EA enables manual practice trading on the MT5 Strategy Tester by monitoring the MT5 Common folder for command text files (buy.txt, sell.txt, close.txt). When a command file is detected, the EA executes the corresponding trade action and deletes the file, allowing users to simulate discretionary trading in backtest mode.
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 is not an automated trading system based on any technical indicators or price strategies; it is a semi-automated tool that triggers trade orders through external file commands. Entry conditions depend entirely on the user manually creating a buy.txt or sell.txt file in the MT5 Common folder, and the EA immediately executes the corresponding market order upon detecting the file on each tick. Exit conditions are triggered by a close.txt file, where the EA reads the current position direction and volume, then places a reverse order to close. Position sizing for new entries is fixed at the input parameter DLot defaulting to 0.01 lots, while closing uses the exact volume of the existing position for the reverse trade. Money management is virtually non-existent — there are no stop-loss, take-profit, trailing stop, or any risk control mechanisms whatsoever. The overall strategy logic is extremely simple, serving merely as a bridge tool for manual trading practice within the Strategy Tester, with no market analysis capabilities at all.
Strengths
- Enables manual trading practice in the Strategy Tester, solving the limitation that MT5 backtest mode does not support manual order placement
- File-detection mechanism is decoupled from the MT5 process, allowing easy integration with external programs or scripts to trigger trades
- UI displays real-time profit and equity information, making it convenient for practitioners to monitor account status
Weaknesses
- No stop-loss, take-profit, or any risk control mechanism — using this on a live account would face enormous loss risk
- Order success check logic has a bug — compares uppercase 'SELL' and 'BUY' but passes lowercase 'sell' and 'buy', so success logs are never printed
- FileIsExist checks and chart redraws execute on every tick, causing unnecessary performance overhead; also lacks new bar detection
Possible improvements
- Add stop-loss and take-profit parameters to provide at least basic risk protection
- Fix the case-sensitivity bug in the ExecuteTrade function — standardize string comparisons to lowercase or uppercase
- Add new bar detection to reduce file check frequency per tick, and add a time interval control for file checking
Risk assessment
Overall risk: High risk
- No stop-loss or take-profit mechanism — position risk is fully exposed, which could cause major losses during extreme market volatility
- ExecuteTrade function does not set SL/TP fields, and OrderSend requests lack price protection
- File detection mechanism has no duplicate execution protection — repeated orders may occur in fast-tick environments
Evaluation scores
Parameters
| Parameter | Default | Description |
|---|---|---|
DLot | 0.01 | Fixed lot size for buy and sell orders |
Similar Utility EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.