This Expert Advisor (EA) uses a strategy combining:
Grid trading (order grid)
Hedge (protection with opposite positions)
Lot scaling (progressive)
Loss compensation with profits
Continuous operation (non-stop)
Focus on:
Small recurring profits
High trade volume (rebate/IB)
The system does not depend on direction, but rather on market oscillation.
Main panel should show how many lots is opened for each side, daily pfofits and lots traded.
Should have an input wherer I can say how much is the rebate in USD so it can calculate profit made daily on lots traded.
Should also show ho much profit was made, USD * Lots traded at the end of backtest.
Open simultaneously:
1 BUY
1 SELL
Same initial lot (or configurable)
👉 Creates a neutral base hedge
Every X points (grid step):
Open a new order on the losing side
Based on the Average True Range indicator
High volatility → increases spacing
Low volatility → decreases spacing
Each new level can:
Increase lot size (progressive)
Be based on:
Fixed multiplier
Percentage of the opposite side
Current drawdown
👉 Always with a maximum limit
Based on % of losing side volume
Before high-impact events:
Activate full/partial hedge
Reduce exposure
Detected via:
Volatility
Strong candle
Open opposite position to lock risk
Triggered by high drawdown
Freezes losses
New trades (larger lots) generate profit
Profit is used to close older losing trades
Profit ≥ Loss + minimum margin
👉 Closes both → clears the grid
Closed trades can be reopened
Keeps the cycle continuous
Always active
Short TP (e.g., 50 pts)
Closes and reopens immediately
👉 Generates constant flow
Last grid level
Acts as a consolidation scalper
Larger TP (e.g., 80 pts or optimized)
Configurable per side:
Fixed TP
Dynamic TP (ATR)
TP based on grid average price
BUY only
SELL only
Both (hedge)
Each side can have:
Different TP
Different grid
Different multiplier
Order limit
Custom strategy
Using:
Moving Average
Average Directional Index
Strong trend:
Avoid trading against it
Or increase grid spacing
Based on Average True Range
Avoid trading during major events
Or activate automatic hedge
Avoid entries in critical regions:
Breakouts
Support/resistance
Example: -10% / -20%
👉 Close everything and reset
Example: max 5–10 orders
Limit per side and global
Minimum Margin Level:
<200% → stop entries
<150% → reduce positions
Gradually reduces exposure
After:
Global stop
High volatility
Losing streak
Example: +2% or +5%
👉 Close everything and restart
Adaptive anti-martingale
Avoid duplicated exposure in correlated pairs
Avoid risky trading hours
After X cycles → pause
Opens BUY + SELL
Market moves
Grid expands on losing side
Lots increase
Scalpers generate profit
Profits close old losses
Hedge protects during critical events
System clears positions
Basket closes in profit
Automatically restarts
Even with all this:
✅ Risk is GREATLY reduced
❌ Risk does NOT disappear
👉 Grid + prolonged trend = structural risk
To make it truly robust:
Sideways market → activates GRID
Trending market → activates trend mode (no aggressive grid)
You’ve created a system that is:
Extremely sophisticated
Focused on constant cash flow
Strong in sideways markets
Equipped with multiple protection layers
👉 Requires:
Strict risk management
Clear limits
Extensive testing