Optimize and fix MQL5 multi divergence indicator conterted from Pinescript

指定

The job is to optimize and fix an MQL5 multi divergence indicator originally converted from a TradingView Pinescript indicator.

Things to fix:

1. Speed - the indicator works, to an extent, but is extremely slow/resource intensive sometimes blank and unreliable compared to the performance of the TV version. 

2. The divergences shown by MT5 roughly coincide to TV, but often MT5 shows more/less divergences. For the same chart, the MT5 version must show the same as TV.

3. The MT5 indicator is slow and I disable divergence line draw in the settings - however, when doing this the MT5 version displays random divergences that are not shown on the TV version. See images below. To mitigate this, I keep the divergence line setting to true but comment out the line draw command in the MQL5. I want this fixed so I can disable divergence lines in the settings but see the same divergences as TV.

The below MT5/TV charts are from the same broker with identical OHCL.

TV indictor showing regular/hidden divergences and divergence lines

TV Indicator showing regular/hidden divergences and divergence lines:


MT5 indicator showing regular/hidden divergences and divergence lines

MT5 Indicator showing regular/hidden divergences and divergence lines: note that the divergence do not exactly match the TV version (requirement 2)


TV indicator showing regular/hidden divergence without divergence lines

TV indicator showing regular/hidden divergence with divergence lines disabled in settings:


MT5 indicator showing regular/hidden divergence with divergence line disabled

MT5 indicator showing regular/hidden divergence with divergence lines disabled in settings - note that this shows random divergences that are not on the above TV chart

(req 3) - this must be fixed so MT5 shows the same divergence as TV when divergence line draw is disabled


附加的文件:

反馈

1
开发者 1
等级
(17)
项目
25
0%
仲裁
4
0% / 100%
逾期
5
20%
工作中
2
开发者 2
等级
(1)
项目
1
0%
仲裁
6
0% / 67%
逾期
0
空闲
3
开发者 3
等级
(24)
项目
31
19%
仲裁
4
50% / 25%
逾期
4
13%
空闲
4
开发者 4
等级
(265)
项目
596
35%
仲裁
64
20% / 58%
逾期
147
25%
工作中
发布者: 1 文章, 22 代码
5
开发者 5
等级
(9)
项目
11
18%
仲裁
4
0% / 100%
逾期
4
36%
空闲
6
开发者 6
等级
(1)
项目
4
0%
仲裁
5
20% / 40%
逾期
2
50%
空闲
7
开发者 7
等级
(14)
项目
14
14%
仲裁
8
0% / 88%
逾期
2
14%
已载入
8
开发者 8
等级
(7)
项目
11
0%
仲裁
4
0% / 100%
逾期
2
18%
工作中
9
开发者 9
等级
(85)
项目
168
44%
仲裁
3
67% / 0%
逾期
5
3%
工作中
发布者: 1 代码
10
开发者 10
等级
(64)
项目
144
46%
仲裁
19
42% / 16%
逾期
32
22%
工作中
11
开发者 11
等级
(2)
项目
3
0%
仲裁
8
13% / 88%
逾期
1
33%
空闲
12
开发者 12
等级
项目
0
0%
仲裁
0
逾期
0
空闲
13
开发者 13
等级
(574)
项目
945
47%
仲裁
309
58% / 27%
逾期
125
13%
空闲
相似订单
PROJECT DESCRIPTION Looking for 1 experienced MQL5 developer to build 2 Expert Advisors for MetaTrader 5, targeting XAUUSD and major currency pairs. Strong preference for a single developer handling both EAs to maximize code reuse, reduce cost, and ensure consistency. EA1 — Grid Martingale Pro · Buy/Sell grid with Fixed or ATR Dynamic distance (ATR read once per fill, stored in grid_step_at_open[]) · Gap
Hi I have a simple task (hopefully) I have a custom strategy that I built with the help of Claude Anthropic - everything is finished and I zipped it with power shell but when importing it NT8 gives me the error message that the file was made from an older, incompatible version or not a NinjaScript. My folder structure is correct as far I can see so I don't know what the issues is and it's costing me too much to go
Do you happen to have a profitable strategy for MNQ? it is urgent if any one can help me with this i will be happy to discuss with you and move forward to pay for it kindly let me know the amount thank fill free to bid
Subject: Development of Ultra-High Precision Confluence Indicator - M1 Binary Options (Non-Repaint) ​ Hello, I am looking for a Senior MQL5 Developer to create a custom "Surgical Precision" indicator for MetaTrader 5, specifically optimized for 1-minute (M1) Binary Options trading. The system must integrate three distinct layers of algorithmic analysis. ​ 1. Core Logic: Triple-Layer Confluence ​The signal (Call/Put)
Looking for an experienced MQL5 developer to design and develop a custom Expert Advisor (EA) for MetaTrader 5. The purpose of this EA is not just automated trading, but also to help me better structure, test, and refine my personal trading strategy
Freeallfree 400 - 800 USD
Professional MT5 EA – XAUUSD I need a professional Expert Advisor for MT5 (MQL5) to trade XAUUSD only. This is not a random scalping bot. The EA must trade only high-probability liquidity breakouts during active sessions and avoid ranging or low-volatility markets. Symbol: XAUUSD Timeframe: M15 (optional H1 confirmation) Session filter (Dubai GMT+4): Trade only London and New York sessions Adjustable session times No
Hi Developers, I am looking for a EA based on EURUSD where EA is taking multiple trades in a day with small profits in each trade. Looking for some EA based on HFT trading, scalping
My EA has serious problems and needs full improvement and optimization. Problems: No Stop Loss and Take Profit No risk management system High drawdown and losses Opens multiple trades at same entry (overtrading) No maximum trades per day limit No maximum open trades per symbol No trailing stop Poor entry logic and weak signals Trades open very late (after many days) No equity protection system No daily loss limit No
Hi, I need a simple MT5 EA. Based on my simple trading strategy I'm going to discuss with you If you have experience in this kindly bid for this project Thanks
An Expert KBFX 30+ USD
Fill orders first execution and real time trading, my strategy is that wait for clean confirmation before entering the market and fill orders for a snappier entrance,then execute trade after making profit on the position

项目信息

预算
30 - 100 USD
截止日期
 1  5 天