Termos de Referência
To design and implement a profitable Expert Advisor (EA) that trades based on time-of-day signals, historical success ratio, and a volume-based trigger. The system adapts over a bi-weekly performance evaluation window to optimize entry conditions.
Core Logic
-
Time-of-Day Filter
-
EA only trades within user-defined trading sessions (e.g., London Open, NY Open, Asia Session).
-
Configurable start/end time (broker time).
-
-
Success Ratio Filter
-
Tracks historical trade performance segmented by session/time-of-day.
-
Calculates win-rate (%) over the last X trades or X days.
-
Minimum success threshold required before allowing new trades (e.g., >55% win-rate for that session).
-
Resets/adapts every bi-weekly period (14 days).
-
-
Volume Trigger
-
Confirms trades only when tick/market volume exceeds a set threshold (to avoid low-liquidity chop).
-
User-defined input for minimum volume.
-
Option to use relative average volume (e.g., >1.2x the 20-bar average).
-
-
Bi-Weekly Threshold Management
-
EA evaluates performance every 14 days:
-
If net profit > threshold → continue/scale trading size.
-
If net profit < threshold → reduce risk or pause trading until conditions reset.
-
-
Keeps trade frequency and drawdown controlled.
-
Trade Entry & Exit
-
Entry Logic
-
If within time filter AND success ratio condition met AND volume trigger active → allow trade entry.
-
Underlying strategy can be configurable (breakout, trend-following MA cross, or mean reversion).
-
-
Exit Logic
-
Fixed TP/SL in pips or % of ATR.
-
Option for trailing stop and/or break-even shift.
-
Risk Management
-
Fixed % risk per trade (default: 1%).
-
Daily loss limit.
-
Max trades per session/day.
-
Bi-weekly drawdown cap: stop trading if equity falls >X% within evaluation period.
Key Inputs (User Parameters)
-
Session Times (Start/End in broker time).
-
Min Win Rate % (e.g., 55%).
-
Lookback Period for success ratio (trades or days).
-
Volume Threshold (absolute or relative).
-
Bi-Weekly Thresholds (profit/loss cutoffs).
-
Risk per trade (% or lot size).
-
TP/SL (fixed or ATR-based).
-
Max trades per session/day.
Reporting / Dashboard
-
On-screen panel showing:
-
Current session status (Active/Inactive).
-
Success ratio for last 14 days.
-
Volume status (Pass/Fail).
-
Bi-weekly P/L performance.
-
-
Logs all trades with tags: session, success ratio at entry, volume condition.
Platforms
-
To be implemented in MT4/MT5 (MQL4/5).