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 article, 2 codes
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 codes
11
開発者 11
評価
プロジェクト
1
0%
仲裁
0
期限切れ
0
暇
パブリッシュした人: 4 codes
12
開発者 12
評価
(1)
プロジェクト
2
0%
仲裁
2
0% / 100%
期限切れ
0
仕事中
13
開発者 13
評価
プロジェクト
0
0%
仲裁
0
期限切れ
0
暇
パブリッシュした人: 3 codes
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 code
類似した注文
​​ 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
SMC Bot Creation 350 - 550 USD
Hello, I am interested in developing a professional MT5 Expert Advisor similar in functionality and technical sophistication to your reference product, Institutional SMC Robot: https://www.mql5.com/en/market/product/187011 I want to develop my own independent EA based on advanced Smart Money Concepts (SMC), with a strong focus on institutional price action, liquidity and market structure. The key functionalities I
Hello, I am an independent developer selling an Expert Advisor (EA) on the MQL5 Market. I am looking for an experienced Forex affiliate marketing company or professional marketer to promote my existing MT5 trading robot to customers worldwide. My proposed partnership offers a 35% commission per verified sale, with the possibility of a long-term collaboration. I would like to know: Do you promote third-party MT5
Platform: MT5 only (no MT4 needed). Deliverable: an MT5 Expert Advisor with full source code (.mq5) that replicates the attached TradingView strategy (Pine Script v6, based on LuxAlgo's "ICT Killzones Toolkit" order blocks) as exactly as possible. Pasting the code into TradingView shows how it operates. I normally trade GBPUSD on the 5-minute chart Expected behavior: - Order block detection must match the Pine code
I have three indicators that operate independently. I want to combine them into one indicator with custom expert programming that automatically enters trades when a signal is generated by one of the indicators. I will pay for this service Thanks you

プロジェクト情報

予算
200 - 500 USD
締め切り
最低 1 最高 7 日