Fixing Fib levels and trendlines

MQL5 Indicators Experts

Specification

I am seeking assistance with an MT5 indicator that I am currently using. The indicator is a multi-timeframe (MTF) zigzag with Fibonacci levels. When I load the indicator multiple times on the same chart—using both current and different higher timeframes (HTF)—the trendlines and Fibonacci levels do not always display as expected.

To test the indicator, I have a set file configured with settings for four instances of the indicator, each with a different colour scheme (I will share the set file for your convenience). When I load the set file on the H4 timeframe, I expect to see four distinct sets of Fibonacci levels and trendlines. Similarly, on the D1 timeframe, I expect three sets, as the lower timeframe is overshadowed by the higher one. On the W1 timeframe, there should be two sets, and on the MN1 timeframe, only one set should be visible.

In certain cases, where the zigzag points are closely located, the indicator works as intended. However, this is not consistent. I have added some debug code to troubleshoot the issue. From what I can observe, the indicator recalculates multiple times. Although it seems to calculate correctly at first, subsequent recalculations cause the zigzag pivots to reset to zero. The indicator appears to be performing unnecessary calculations for zigzag points that are irrelevant, which could potentially be excluded. The focus should only be on enough calculations to draw the Fibonacci levels and trendlines for the four timeframes.

Its important to test it on multiple currency pairs as on some duse to zig zag point it might work and then on others not. I need it to work on all pair at all times. This is a requirement.

Here’s how the indicator should ideally function:


  • H4 timeframe: Four sets of Fibonacci levels and trendlines (In the sample clearly just two)
  • D1 timeframe: Three sets of Fibonacci levels and trendlines
  • W1 timeframe: Two sets of Fibonacci levels and trendlines
  • MN1 timeframe: One set of Fibonacci levels and trendlines

I believe all objects have unique IDs, but it would be helpful if you could verify that the uniqueness is maintained throughout the code. The indicator currently contains approximately 2,200 lines of code. I do not want to lose any of the existing inputs, features, or outputs, as it works for me in its current state—particularly the zigzag functionality, which is exactly as I had requested. However, I would appreciate your help in resolving the aforementioned issues.

I wish for it to work flaulessly please



Responded

1
Developer 1
Rating
(518)
Projects
787
63%
Arbitration
33
27% / 45%
Overdue
23
3%
Free
Published: 1 code
2
Developer 2
Rating
(261)
Projects
276
55%
Arbitration
0
Overdue
5
2%
Free
3
Developer 3
Rating
(73)
Projects
83
64%
Arbitration
5
100% / 0%
Overdue
9
11%
Free
4
Developer 4
Rating
(270)
Projects
552
49%
Arbitration
57
40% / 37%
Overdue
228
41%
Working
5
Developer 5
Rating
(42)
Projects
61
21%
Arbitration
7
29% / 29%
Overdue
10
16%
Loaded
6
Developer 6
Rating
(4)
Projects
3
0%
Arbitration
3
33% / 67%
Overdue
1
33%
Free
7
Developer 7
Rating
(1)
Projects
2
0%
Arbitration
2
50% / 50%
Overdue
0
Free
8
Developer 8
Rating
(542)
Projects
624
33%
Arbitration
39
36% / 49%
Overdue
11
2%
Busy
Similar orders
Hello I want to convert my tradingview indicators into Ninja trader can anyone help me with it it is urgent and I will like to discuss more about it to you if you can help me Kindly do well to bid on it
Good morning, i need to convert a robot from ex4 file to mq4 file. This current robot only works on démo. I need it to work on real account. That's why i need this modifivation. Thank you
I want to extract a hidden source code (pine script) from an Tradingview Indicator. and i need it to be done as soon as possible, If you are an expert on this field kindly comments Here is the TV indicator with a hidden source code (pine script)
Reversal indicator 30 - 165 USD
Looking for a good reversal indicator that doesn't repaint and doesn't use a shift after waiting for future data. If you have any, or knowledge about them please drop a message and we can discuss further. If you already have made please drop screenshots of what you have made
Hi, I have a pinescript for an indicator that I want to translate to .mql5 it is Smart Money Concept by luxalgo. Most important are the zones Premium, equilibrium and discount zones
Expert Advisor not taking trades automatically as expected Need to make sure logic is sound and effective Make sure it is optimized to trade crash and boom only Modify if necessary so that the EA can perform at its best It should provide 1 notification per trade/signal found
I need my Expert Advisor to be modified so that its live trading logic behaves exactly like the "1 Minute OHLC" modeling mode in the MetaTrader 5 Strategy Tester. This is not an approximation request. The execution logic must strictly replicate the internal behavior of MT5 OHLC M1 modeling. Mandatory Requirements: The EA must operate strictly on M1 timeframe data. The EA must NOT depend on real tick data for signal
I am looking for a trading bot that has been created, tested, and proven profitable in live market conditions on NQ (Nasdaq-100 futures) . Requirements: Must be profitable on a real account , not demo-only Performance must be verifiable. Low drawdown with consistent risk management Built and maintained by an experienced developer with prior live-trading results The developer must provide a demo or test version of the
Fixing mq5 code 30+ USD
Hello, i have a mt5 EA that uses trailing start and distance + BreakEven start and distance. It doesnt work right, what ever number i put, it always starts BE at 50 or 100 points in profit.. and also, EA stops trading if "trend alignment" or "time filter" is OFF and trades remain opened.. EA should continue trading normally until all trades are closed and then shut down for the day.. those needs fixing.. i can pay
Fixed alert mt4 40+ USD
I’m looking for an experienced developer to help fix and improve an alert system in a trading project. Tasks Review and fix existing alert logic Ensure alerts work perfectly with no lag or delay Organize and optimize scattered alert code Check for missing files and improve overall structure Suggest and implement necessary improvements Dashboard (Optional but Preferred) Create a dashboard displaying: Brand name

Project information

Budget
100 - 120 USD
Deadline
to 3 day(s)