Grid EA with percentage trade allocation with Hedge

Tarea técnica

🚀 ADAPTIVE GRID HEDGE EA (FULL VERSION)

🧠 📌 GENERAL CONCEPT

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.


⚙️ 🔁 CORE SYSTEM LOGIC

🔹 1. Initialization

  • Open simultaneously:

    • 1 BUY

    • 1 SELL

  • Same initial lot (or configurable)

👉 Creates a neutral base hedge


🔹 2. GRID Formation

  • Every X points (grid step):

    • Open a new order on the losing side

📊 Dynamic grid:

Based on the Average True Range indicator

  • High volatility → increases spacing

  • Low volatility → decreases spacing


🔹 3. Lot Scaling

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


🔹 4. Dynamic Hedge

🛡️ Hedge types:

✔ Standard hedge

  • Based on % of losing side volume

⚠️ News hedge

  • Before high-impact events:

    • Activate full/partial hedge

    • Reduce exposure

🌪️ Breakout hedge

  • Detected via:

    • Volatility

    • Strong candle

  • Open opposite position to lock risk

🚨 Emergency hedge

  • Triggered by high drawdown

  • Freezes losses


🔹 5. Smart Closing (Profit Offset Engine)

  • New trades (larger lots) generate profit

  • Profit is used to close older losing trades

📌 Rule:

Profit ≥ Loss + minimum margin

👉 Closes both → clears the grid


🔹 6. Automatic Reopening

  • Closed trades can be reopened

  • Keeps the cycle continuous


🔹 7. Scalper Strategy (First and Last Trade)

⚡ First order:

  • Always active

  • Short TP (e.g., 50 pts)

  • Closes and reopens immediately

👉 Generates constant flow


⚡ Last order:

  • Last grid level

  • Acts as a consolidation scalper

  • Larger TP (e.g., 80 pts or optimized)


🔹 8. Take Profit

Configurable per side:

  • Fixed TP

  • Dynamic TP (ATR)

  • TP based on grid average price


🔹 9. Operation Modes

  • BUY only

  • SELL only

  • Both (hedge)


🔹 10. Independent Parameters per Side

Each side can have:

  • Different TP

  • Different grid

  • Different multiplier

  • Order limit

  • Custom strategy


🧠 📊 INTELLIGENT FILTERS

📈 Trend filter

Using:

  • Moving Average

  • Average Directional Index

Rules:

  • Strong trend:

    • Avoid trading against it

    • Or increase grid spacing


🌪️ Volatility filter

  • Based on Average True Range


📰 News filter

  • Avoid trading during major events

  • Or activate automatic hedge


🧱 Block zone

  • Avoid entries in critical regions:

    • Breakouts

    • Support/resistance


🛡️ 🔒 PROTECTION SYSTEM (ANTI-BLOWUP)

🚨 1. Global equity stop

  • Example: -10% / -20%

👉 Close everything and reset


📉 2. Grid level limit

  • Example: max 5–10 orders


⚖️ 3. Total lot limit

  • Limit per side and global


📊 4. Margin protection

  • Minimum Margin Level:

    • <200% → stop entries

    • <150% → reduce positions


🔄 5. Partial closing

  • Gradually reduces exposure


⏸️ 6. Automatic pause

  • After:

    • Global stop

    • High volatility

    • Losing streak


🎯 7. Global take profit (basket)

  • Example: +2% or +5%

👉 Close everything and restart


📉 8. Lot reduction during drawdown

  • Adaptive anti-martingale


🔗 9. Correlation control

  • Avoid duplicated exposure in correlated pairs


📅 10. Session control

  • Avoid risky trading hours


🔢 11. Cycle limit

  • After X cycles → pause


🔄 🔁 FULL EA CYCLE
  1. Opens BUY + SELL

  2. Market moves

  3. Grid expands on losing side

  4. Lots increase

  5. Scalpers generate profit

  6. Profits close old losses

  7. Hedge protects during critical events

  8. System clears positions

  9. Basket closes in profit

  10. Automatically restarts


⚠️ 📉 IMPORTANT TRUTH (NO ILLUSION)

Even with all this:

  • ✅ Risk is GREATLY reduced

  • ❌ Risk does NOT disappear

Why:

👉 Grid + prolonged trend = structural risk


🧠 🔥 PROFESSIONAL LEVEL (FINAL UPGRADE)

To make it truly robust:

👉 Adaptive mode

  • Sideways market → activates GRID

  • Trending market → activates trend mode (no aggressive grid)


🧩 CONCLUSION

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


Han respondido

1
Desarrollador 1
Evaluación
(438)
Proyectos
650
53%
Arbitraje
35
63% / 20%
Caducado
7
1%
Trabaja
2
Desarrollador 2
Evaluación
(1)
Proyectos
1
100%
Arbitraje
0
Caducado
0
Libre
3
Desarrollador 3
Evaluación
(111)
Proyectos
184
25%
Arbitraje
25
16% / 76%
Caducado
16
9%
Libre
4
Desarrollador 4
Evaluación
(22)
Proyectos
28
7%
Arbitraje
9
33% / 33%
Caducado
1
4%
Trabaja
5
Desarrollador 5
Evaluación
(7)
Proyectos
10
70%
Arbitraje
0
Caducado
0
Trabaja
Ha publicado: 1 artículo, 2 ejemplos
6
Desarrollador 6
Evaluación
(10)
Proyectos
17
18%
Arbitraje
3
0% / 67%
Caducado
3
18%
Trabaja
7
Desarrollador 7
Evaluación
(2)
Proyectos
3
33%
Arbitraje
0
Caducado
2
67%
Libre
8
Desarrollador 8
Evaluación
(13)
Proyectos
23
39%
Arbitraje
8
0% / 50%
Caducado
4
17%
Libre
9
Desarrollador 9
Evaluación
(4)
Proyectos
10
60%
Arbitraje
1
0% / 0%
Caducado
0
Trabaja
10
Desarrollador 10
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
Ha publicado: 2 ejemplos
11
Desarrollador 11
Evaluación
Proyectos
1
0%
Arbitraje
0
Caducado
0
Libre
Ha publicado: 4 ejemplos
12
Desarrollador 12
Evaluación
(1)
Proyectos
2
0%
Arbitraje
2
0% / 100%
Caducado
0
Trabaja
13
Desarrollador 13
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
Ha publicado: 3 ejemplos
14
Desarrollador 14
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
15
Desarrollador 15
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
16
Desarrollador 16
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
17
Desarrollador 17
Evaluación
(567)
Proyectos
864
61%
Arbitraje
33
27% / 45%
Caducado
24
3%
Libre
Ha publicado: 1 ejemplo
Solicitudes similares
Seeking Experienced Forex EA Developer – Currency Strength Meter Strategy Optimization (MT4/MT5) I am looking for an experienced Forex EA developer and quantitative trading strategist to help improve, optimize, and professionally test my existing Expert Advisor (EA). My EA is based on a Currency Strength Meter strategy, which identifies strong and weak currencies and automatically executes trades by pairing a strong
I am looking for a quantitative strategy researcher and MQL5 developer to help research, validate and prototype a fast automated XAUUSD trading system for MT5. The target is tick-level trading with positions typically held for seconds, closely spaced entries, and configurable bursts of multiple positions during a qualifying opportunity. IMPORTANT: We do not yet have a validated profitable strategy. I need someone who
Experienced Trading Software Developer Needed – Multi-Platform Development Hello! I'm looking for an experienced developer to create a custom trading indicator and convert it into an automated trading bot for the following platforms: MT5 NinjaTrader 8 Quantower cTrader The plan is to develop the same indicator and trading bot for all four platforms, one after another. Project requirements: Custom trading indicator
un écosystème logiciel asynchrone multi-comptes dopé par un module de supervision par Intelligence Artificielle (Guardian AI). La solution assure le pilotage automatisé, le filtrage de marché en temps réel et le contrôle des risques pour 20+ comptes MetaTrader 4/5 (via MetaApi) et Deriv sur VPS Equinix NY4. vous aurez plus de detail dans les échanges
I am looking for an experienced trading software developer interested in building a long-term working relationship. Im a professional Trader, Coach and Mentor, I work with traders and Student who require customized trading solutions, including automated trading bots, Expert Advisors, custom indicators, trading strategies and other algorithmic trading tools. I am looking for a technically skilled developer who can
Salman serhal 30 - 100 USD
MT5 ICT XAUUSD Sell-Only Trading Robot with Fibonacci Confirmation I am looking for an experienced MQL5 developer to create a custom Expert Advisor (EA) for MetaTrader 5, specifically for trading Gold (XAUUSD). 1. Trading Strategy The robot must use the ICT trading methodology and focus on SELL trades only. The strategy should include: * Identify important resistance and premium zones. * Use Fibonacci retracement
Objective: I am looking for an experienced MQL5 quantitative developer to code an Expert Advisor (EA) from scratch based on a fully defined, rule-based strategy, and then rigorously validate, optimize, and stress-test it before I deploy it on a live VPS environment. Note: The exact mathematical rules, indicator names, and chart screenshots will be shared privately with shortlisted candidates. Strategy Overview
I’m looking for someone who can develop and optimize high-quality strategies/setfiles for my existing, custom-built Martingale EA. This is not a standard Martingale EA. It has multiple built-in safety features, so a thorough understanding of the EA’s logic and risk management is essential. Here’s what I’m looking for: 1. Optimization & Backtesting Extensive experience with EA optimization and backtesting using real
​​ Title: ​Create a Combined Indicator from 3 EX4 Indicators + Fully Automatic Trading EA (MT4) ​ Description: ​Hello, ​I need an experienced MQL4 developer to build a custom trading system based on 3 existing .ex4 indicators. ​ Project Requirements: ​ Combined Custom Indicator: ​Read and merge signals from 3 specified .ex4 indicators via buffer reading (iCustom). ​Generate a consolidated BUY or SELL arrow/signal
I am looking for an experienced MQL5 developer to recreate my existing MT5 Expert Advisor (DSTR Novaa). I have the original compiled EX5 file, Vantage MT5 live trading history and original Strategy Tester report. Required Trading Logic: EMA Period: 3. BUY when price crosses below EMA 3. SELL when price crosses above EMA 3. Starting Lot: 0.01 (configurable). Martingale Multiplier: 2.0. Maximum Martingale Cycle: 9

Información sobre el proyecto

Presupuesto
200 - 500 USD
Plazo límite de ejecución
de 1 a 7 día(s)