Programming closed cycle grid-hedging Expert Advisor (EA).

MQL5 Uzmanlar Forex

Şartname

Project Overview

I need assistance coding a hedging Expert Advisor (EA) that operates in "closed cycles" with a strict limit of five simultaneous open positions.

EA Logic & Mechanism

  1. Initial Entry:

    • Open a Buy position of 0.01 lots (Position A) with a Take Profit (TP) target of $1.00.

  2. Scenario 1: Price Drops (Hedging Step 1):

    • If the price moves against the first trade, open two positions simultaneously: a Sell 0.02 (Position B) and a Buy 0.01 (Position C).

    • If the price continues to drop and hits the TP, close positions A and B. Position C remains open.

    • Immediately open two new positions at that level: a Sell 0.02 (Position F) and a Buy 0.01 (Position G).

  3. Scenario 2: Price Reverses (Expanding the Hedge):

    • If the price reverses back up before hitting the TP in Scenario 1, open two additional positions: a Buy 0.01 (Position D) and a Sell 0.01 (Position E).

    • Maximum Limit: At this point, there are 5 open positions. The EA must not open any further trades until some are closed.

  4. Cycle Completion & Reset:

    • If the price goes up: Close four positions (A, B, C, and D) at the TP. Keep Position E (Sell) open. Then, open a Buy 0.02 (Position I) and a Sell 0.01 (Position J) to restart the cycle.

    • If the price goes down: Apply the same logic in the opposite direction.

    • Continuity: The EA must ensure there is always at least one active position open to keep the cycle moving.

Technical Parameters & Risk Management

To ensure the EA is flexible and robust, please incorporate the following settings and logic:

  • Adjustable Inputs: * The Lot Size, Grid Distance (pips), and Take Profit (TP) amount must be user-defined variables.

    • Fixed Ratios: While the base lot size can change, the ratio between Buy and Sell positions must remain fixed as per the logic above.

  • Cycle Reset Logic:

    • A new cycle should only begin after at least four positions from the previous cycle have been closed.

    • To ensure smooth execution and avoid overlapping errors, the TP for these closing positions should be set at $0.90 instead of $1.00.

    • Note: Pending orders must remain fixed at the initial 10-pip distance, regardless of the TP adjustment.

  • Slippage & Execution:

    • In the event of price slippage, the EA must prioritize closing the trades and placing the pending orders at the pre-calculated levels.

    • The EA should execute the close even if the final profit is slightly less than $1.00 or results in a small loss due to market gaps.

  • Safety Features:

    • Equity Protection: Include a Total Drawdown Stop Loss (either in currency or percentage) that closes all positions and stops the EA if a specific loss limit is reached.

    • Developer Suggestions: I am open to suggestions regarding error handling (e.g., requotes or connection timeouts) and optimizations for faster execution.

 


Dosyalar:

JPG
HM.jpg
174.0 Kb
JPG
1.jpg
40.2 Kb
JPG
2.jpg
69.9 Kb
JPG
3.jpg
107.2 Kb
JPG
4.jpg
118.9 Kb
JPG
5.jpg
120.7 Kb
JPG
6.jpg
129.5 Kb

Yanıtlandı

1
Geliştirici 1
Derecelendirme
(253)
Projeler
316
29%
Arabuluculuk
34
26% / 65%
Süresi dolmuş
10
3%
Serbest
2
Geliştirici 2
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
3
Geliştirici 3
Derecelendirme
(16)
Projeler
35
23%
Arabuluculuk
4
0% / 50%
Süresi dolmuş
2
6%
Çalışıyor
4
Geliştirici 4
Derecelendirme
(457)
Projeler
795
49%
Arabuluculuk
71
17% / 54%
Süresi dolmuş
139
17%
Serbest
5
Geliştirici 5
Derecelendirme
(60)
Projeler
87
29%
Arabuluculuk
24
13% / 58%
Süresi dolmuş
7
8%
Yüklendi
6
Geliştirici 6
Derecelendirme
(147)
Projeler
156
42%
Arabuluculuk
3
33% / 33%
Süresi dolmuş
1
1%
Çalışıyor
7
Geliştirici 7
Derecelendirme
(1)
Projeler
1
0%
Arabuluculuk
0
Süresi dolmuş
0
Çalışıyor
8
Geliştirici 8
Derecelendirme
(104)
Projeler
170
24%
Arabuluculuk
23
9% / 78%
Süresi dolmuş
16
9%
Çalışıyor
9
Geliştirici 9
Derecelendirme
(168)
Projeler
201
48%
Arabuluculuk
5
20% / 60%
Süresi dolmuş
2
1%
Serbest
10
Geliştirici 10
Derecelendirme
(10)
Projeler
15
13%
Arabuluculuk
3
33% / 67%
Süresi dolmuş
2
13%
Çalışıyor
11
Geliştirici 11
Derecelendirme
Projeler
1
0%
Arabuluculuk
1
0% / 0%
Süresi dolmuş
0
Çalışıyor
12
Geliştirici 12
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
13
Geliştirici 13
Derecelendirme
(8)
Projeler
9
0%
Arabuluculuk
2
0% / 50%
Süresi dolmuş
1
11%
Çalışıyor
14
Geliştirici 14
Derecelendirme
(278)
Projeler
373
72%
Arabuluculuk
19
32% / 47%
Süresi dolmuş
14
4%
Serbest
Yayınlandı: 14 kod
15
Geliştirici 15
Derecelendirme
(162)
Projeler
288
35%
Arabuluculuk
18
22% / 61%
Süresi dolmuş
42
15%
Çalışıyor
16
Geliştirici 16
Derecelendirme
(119)
Projeler
169
38%
Arabuluculuk
9
78% / 22%
Süresi dolmuş
15
9%
Serbest
17
Geliştirici 17
Derecelendirme
(4)
Projeler
8
13%
Arabuluculuk
1
0% / 0%
Süresi dolmuş
2
25%
Çalışıyor
18
Geliştirici 18
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
19
Geliştirici 19
Derecelendirme
(1)
Projeler
1
100%
Arabuluculuk
0
Süresi dolmuş
0
Çalışıyor
20
Geliştirici 20
Derecelendirme
(11)
Projeler
20
35%
Arabuluculuk
2
0% / 100%
Süresi dolmuş
4
20%
Yüklendi
21
Geliştirici 21
Derecelendirme
(17)
Projeler
19
26%
Arabuluculuk
0
Süresi dolmuş
3
16%
Serbest
22
Geliştirici 22
Derecelendirme
(3)
Projeler
3
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
23
Geliştirici 23
Derecelendirme
(6)
Projeler
5
0%
Arabuluculuk
3
33% / 67%
Süresi dolmuş
2
40%
Serbest
24
Geliştirici 24
Derecelendirme
(190)
Projeler
246
20%
Arabuluculuk
22
50% / 18%
Süresi dolmuş
0
Yüklendi
25
Geliştirici 25
Derecelendirme
(13)
Projeler
20
40%
Arabuluculuk
1
0% / 100%
Süresi dolmuş
1
5%
Serbest
26
Geliştirici 26
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
27
Geliştirici 27
Derecelendirme
(19)
Projeler
24
21%
Arabuluculuk
0
Süresi dolmuş
2
8%
Çalışıyor
28
Geliştirici 28
Derecelendirme
(38)
Projeler
41
59%
Arabuluculuk
1
100% / 0%
Süresi dolmuş
1
2%
Çalışıyor
Yayınlandı: 5 kod
29
Geliştirici 29
Derecelendirme
(541)
Projeler
819
62%
Arabuluculuk
33
27% / 45%
Süresi dolmuş
23
3%
Serbest
Yayınlandı: 1 kod
30
Geliştirici 30
Derecelendirme
(618)
Projeler
1428
59%
Arabuluculuk
31
81% / 0%
Süresi dolmuş
10
1%
Serbest
31
Geliştirici 31
Derecelendirme
(258)
Projeler
264
30%
Arabuluculuk
0
Süresi dolmuş
3
1%
Serbest
Yayınlandı: 2 kod
Benzer siparişler
Hello, I would like to clarify something before we proceed. I already have a base code prepared for the indicator. However, the code is not the final version and it still requires professional refinement, debugging, and optimization. Because of this, I am specifically looking for a highly experienced developer who can understand the full logic and structure of the system and improve it properly. Before I send you the
Powerful 30 - 100 USD
I really want a powerful developed EA that can generate a minimum of 10% every month without martingale, greed or any dangerous strategy for sale. Developer must provide the mql5 file or the raw file for modification etc
I already have a fully developed MT5 Expert Advisor with all required prop firm features, including: Risk management Daily loss & max drawdown limits Spread & slippage filters News filter Trade management system The EA structure is complete. 👉 What I need is a professional developer to replace ONLY the entry logic with a high-quality, rule-based trading strategy. 🚨 STRICT REQUIREMENT (READ CAREFULLY): I am NOT
SMC Price Action Pro 30 - 100 USD
Hello, I have a source code for an MT5 indicator that is open-source and belongs to me. However, it still requires professional improvements and some corrections. At the moment the indicator does not work as expected and there are several issues in the logic and performance that need to be fixed. Because of this, I am looking for a highly experienced MT5 developer who is comfortable working with existing code
Hello, I’m reaching out regarding my TradingView project. I’d like to know if you’re familiar with the Chrome extension for Pine Script optimization. I’m looking for a developer with a premium account who can help optimize some Pine Script code. Please I actually need someone who has a premium account of the chrome extension TradeTuning to optimize Pinescripts (for some specific data they give in their reports). Do
Hello, I’m looking for an experienced developer who can help convert an existing cTrader indicator into a fully functional Quantower indicator . I already have the complete source code for the cTrader indicator (written in C#) , and I would like the same logic, behavior, and visual output to be accurately replicated in Quantower
I have a fully developed and ready Expert Advisor for MT5. I am NOT looking for coding work. I am looking for an experienced MQL5 Market seller who can publish and manage my EA on the MQL5 Market on my behalf. The deal is revenue share — we split the income from sales or rentals. The EA is complete and ready to publish. If you have an established seller account on MQL5 Market with good reputation and experience
I am seeking an alert-only EA. An EA that will follow all the rules but not execute a trade. As this is a repeat posting I am seeking the successful technician - Xiro from Vietnam. Thanks Karl
Looking for a trading bot / Expert Advisor that wont make dozens of small successful trades and then one or two unsuccessful trades that wipes out your account Requirements: - MT4 capable - Use on the major currency pairs - although open to other currency pairs - Be successful in monetary terms not necessarily in how many successful trades
I need a MT5 Prop firm challenge passing EA with strict prop firm rules compliance. Any strategy can be used but win rate should be above 70%. It should have high impact news filter and a dashboard panel to monitor daily drawdown, target profit, current balance, etc. It should not have martingale, grid, hedging, etc

Proje bilgisi

Bütçe
30+ USD
KDV (20%): 6 USD
Toplam: 36 USD
Geliştirici için
27 USD
Son teslim tarihi
to 10 gün

Müşteri

(1)
Verilmiş siparişler3
Arabuluculuk sayısı0