Техническое задание
Hello,
I want to build a professional and smart scalping EA from scratch with fast execution and ATR-based dynamic pending orders.
Core Logic
-
The EA must place two pending orders simultaneously:
-
Buy Stop above current price
-
Sell Stop below current price
-
-
Both orders include Stop Loss only (no Take Profit)
-
Profits are managed via Break-even + Staged Trailing Stop
OCO Logic
-
When one pending order is triggered:
-
The opposite order is deleted instantly
-
-
Only one active trade at a time
-
No hedging
ATR Dynamic System
-
ATR Period: configurable (e.g., 14)
-
ATR Timeframe: selectable (M1 / M5 / M15)
-
ATR Multiplier for Pending Distance: Distance = ATR × Multiplier
-
Optional: ATR-based Stop Loss, Break-even, and Trailing Step
Additional Protection
-
Mandatory Spread Filter:
-
Default = 40 points
-
Can be increased, decreased, or disabled from settings
-
-
Slippage Protection:
-
EA stops trading if slippage exceeds the allowed limit
-
Optional EMA Filter
-
Fast EMA (e.g., EMA10 or EMA12) as an optional directional filter
-
When enabled:
-
Buy only if price > EMA
-
Sell only if price < EMA
-
-
Can be enabled or disabled in the settings
-
If disabled → EA opens trades solely based on ATR and OCO
Re-entry Logic
-
After a trade closes (SL or Trailing Profit):
-
EA immediately places two new pending orders
-
-
Optional delay (e.g., wait for next candle) can be added
Restrictions & Notes
-
No martingale
-
No grid
-
No external DLLs
-
Clean, professional, maintainable code
- Optional News Filter: The EA should be able to pause trading during major news events to reduce risk. This filter can be enabled or disabled from the settings.
Please confirm feasibility, estimated development time, and configurable default settings for this smart professional EA built from scratch.