Grid EA with percentage trade allocation with Hedge

指定

🚀 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


反馈

1
开发者 1
等级
(438)
项目
650
53%
仲裁
35
63% / 20%
逾期
7
1%
工作中
2
开发者 2
等级
(1)
项目
1
100%
仲裁
0
逾期
0
空闲
3
开发者 3
等级
(111)
项目
184
25%
仲裁
25
16% / 76%
逾期
16
9%
空闲
4
开发者 4
等级
(22)
项目
28
7%
仲裁
9
33% / 33%
逾期
1
4%
工作中
5
开发者 5
等级
(7)
项目
10
70%
仲裁
0
逾期
0
工作中
发布者: 1 文章, 2 代码
6
开发者 6
等级
(10)
项目
17
18%
仲裁
3
0% / 67%
逾期
3
18%
工作中
7
开发者 7
等级
(2)
项目
3
33%
仲裁
0
逾期
2
67%
空闲
8
开发者 8
等级
(13)
项目
23
39%
仲裁
8
0% / 50%
逾期
4
17%
空闲
9
开发者 9
等级
(4)
项目
10
60%
仲裁
1
0% / 0%
逾期
0
工作中
10
开发者 10
等级
项目
0
0%
仲裁
0
逾期
0
空闲
发布者: 2 代码
11
开发者 11
等级
项目
1
0%
仲裁
0
逾期
0
空闲
发布者: 4 代码
12
开发者 12
等级
(1)
项目
2
0%
仲裁
2
0% / 100%
逾期
0
工作中
13
开发者 13
等级
项目
0
0%
仲裁
0
逾期
0
空闲
发布者: 3 代码
14
开发者 14
等级
项目
0
0%
仲裁
0
逾期
0
空闲
15
开发者 15
等级
项目
0
0%
仲裁
0
逾期
0
空闲
16
开发者 16
等级
项目
0
0%
仲裁
0
逾期
0
空闲
17
开发者 17
等级
(567)
项目
864
61%
仲裁
33
27% / 45%
逾期
24
3%
空闲
发布者: 1 代码
相似订单
I need someone to develop a simple EA that makes random orders. Just random orders no indicators needed. I should be able to set my TP and SL of choice
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
Metafix 50 - 200 USD
Here is a professional specification you can send directly to your developer. # Project Requirements Specification: MetaTrader 5 Trading Robot Development ### 1. Project Overview I want to develop an automated Forex trading robot (Expert Advisor) for MetaTrader 5 (MT5). The robot should analyse the financial markets, identify trading opportunities, and execute trades automatically based on predefined strategies. ###
1. Platform: MT4 The EA required is not linked, neither depending on trading strategy nor trading signals nor indicators. 2. Initial order is a pending order (buy stop/ sell stop) and it is created manually. It is open for a specified symbol (pair) at a specified price with a specified S/L 3. Example: buy stop 0.1 lot GBPUSD @ 1.3085 WITH S/L @1.3075 Once target price is reached, pending order will
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
Hi Team We are looking to commission an Expert Advisor (EA) for MetaTrader 5 (MT5) to trade XAUUSD (Gold) . The EA requires tight risk management with a strict $2.00 Stop Loss and a $3.00 to $5.00 Take Profit target. The goal is to achieve a 60%+ Win Rate . Please propose or implement a strategy algorithm capable of meeting the following performance requirements on XAUUSD tick data: Target Performance: $\ge 60\%$ Win

项目信息

预算
200 - 500 USD
截止日期
从 1 到 7 天