指定
specification
High-Frequency Candle Momentum Scalper
1. Strategy Overview
Core Logic: The EA identifies the current color of the active candle (Bullish or Bearish).
Entry Trigger: It opens positions only after a specific duration of the candle has passed (e.g., after 30 seconds on a 1-minute candle) to confirm the direction.
2. Entry Logic (The "Half-Candle" Rule)
Timeframe: M1 (Default, but adjustable).
Time Filter: The EA waits for X seconds after the candle open before trading (Input: Start_Seconds, default 30).
Direction Check:
If Current_Price > Open_Price (Green Candle) -> BUY.
If Current_Price < Open_Price (Red Candle) -> SELL.
Stacking (Multiple Trades): The EA is allowed to open multiple trades (Max 5 to 10) within the same candle if the price continues to move in the favorable direction as long as the spread isnt too large to inhibit profits.
3. Exit Logic
Take Profit: Very small scalping TP (Input: TakeProfit_Points).
Stop Loss: Hard safety SL (Input: StopLoss_Points).
Candle Exit: (Optional) Close all trades at the end of the candle to prevent holding against a reversal.
4. Inputs (User Configurable)
LotSize: Fixed lot size per trade.
MaxTradesPerCandle: Maximum number of positions allowed in one bar (e.g., 10).
Start_Seconds: How many seconds to wait after candle open (e.g., 30).
Grid_Step: Distance in points between stacked trades.