Техническое задание
Project Title: Modular Session Breakout & Multi-MA EA with Anti-Whipsaw Filters
Requirements: Please build an EA where every feature can be individually turned ON/OFF via an independent toggle switch and configured via adjustable parameters. The EA should function as an efficient "Entry Engine" that works in tandem with external risk managers (e.g., KT Equity Protector).
1. Global Settings
-
Master Switch: Global ON/OFF toggle to control the entire EA.
-
Max Trades per Day: Adjustable number (e.g., 1, 2, or 3) to limit daily activity.
-
Session Cleanup: Toggle to auto-cancel unexecuted pending orders at the end of the session.
2. Strategy Modules (Each with its own ON/OFF Toggle)
-
Module A: Session Breakout:
-
Parameters: Start Time, End Time, Buffer points.
-
Logic: Record High/Low and place pending Stop orders.
-
OCO Logic (Mandatory): Once one side (Buy/Sell) is triggered, the other side must be automatically deleted.
-
-
Module B: 60K Multi-MA Trend:
-
Parameters: Timeframe (60 min), MA Periods (20, 60, 240), MA Method.
-
Logic:
-
Long Entry: Buy when price closes above 60MA. Hold if above 20MA/60MA. Exit if price breaks below 20MA.
-
Short Entry: Sell when price closes below 60MA. Hold/Short if below 60MA/20MA.
-
-
3. Anti-Whipsaw (Defensive) Filters (Each with its own ON/OFF Toggle)
-
Filter 1 (MA Separation): Set minimum point distance between MAs. Do not trade if MAs are too close (prevents sideways/choppy zones).
-
Filter 2 (Breakout Threshold): Minimum distance/buffer requirement to confirm a valid breakout (filters out minor fakeouts).
-
Filter 3 (Loss Cooldown): If X number of stop-losses occur in a short period/same zone, automatically stop trading for the remainder of the day.
4. Money Management
-
Risk-Based Lot Size: Enable/Disable toggle. Set risk percentage per trade (e.g., 3% of account equity). EA must automatically calculate lot size based on equity and SL distance.
5. Compatibility & Notes
-
External Risk Manager: Must be fully compatible with KT Equity Protector. Focus solely on order entry and management; do not conflict with external exit logic.
-
Modularity: Ensure all modules work correctly even when combined (e.g., running Breakout + MA Separation simultaneously).