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
(516)
Projects
784
63%
Arbitration
33
27% / 45%
Overdue
23
3%
Free
Published: 1 code
2
Developer 2
Rating
(258)
Projects
274
54%
Arbitration
0
Overdue
5
2%
Working
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
58
40% / 36%
Overdue
228
41%
Working
5
Developer 5
Rating
(42)
Projects
61
21%
Arbitration
5
40% / 20%
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
(539)
Projects
618
33%
Arbitration
35
37% / 49%
Overdue
10
2%
Busy
Similar orders
Please teach me orderflow 300 - 3000 USD
I am searching a profitable trader that is using orderflow in his analysis. Only serious offers please. Please send me your history of trades. I need proof. Merry Christmas everyone
I am looking for an experienced MQL5 developer to create a high-performance Super Scalper EA for MetaTrader 5, designed specifically for XAUUSD trading on IC Markets. Only serious developers with proven scalping experience should apply. 🔧 General Requirements Platform: MetaTrader 5 (MT5) Instrument: XAUUSD Timeframe: M1 – M15 Broker: IC Markets Initial capital: $100–150 USD Minimum lot: 0.01 Risk per trade
Looking for an Existing Profitable MQL EA for XAUUSD (Gold) – Daily Micro-Scalping I am looking for an already existing Expert Advisor (EA) or script for XAUUSD (Gold) based on a daily micro-scalping strategy . I am not looking to develop a new strategy from scratch , but rather a ready-to-use or previously used system with proven performance. Basic Requirements Instrument: XAUUSD (Gold) Platform: MT5 (preferred) /
Greetings, I'm seeking a price quote for the following EA description. 1) Short positions are opened after trades that have closed below the open of the trade. 2) Long positions are opened after trades that have closed above the open of the trade. 3) The base lot size plus the spread is applied for every trade that opens after the take profit has been reached. 4) Double the lot size of the previous trade plus
I have an issue with my ninja script and i would like you to help me straighten things I wanted to create an indicator and i have the source code already but i am getting compiling errors on my NinjaTrader And i tried fixing the error it still same I sent 3 images here for you to understand the errors and i would like to ask if you can help me fix it so i can go ahead and compile my source code. Thanks
Good day, I would like to build an automated trading system for Ninjatrader using 2 MACD, a Supertrend, and a moving average indicator. I want the option to adjust the indicator settings, the ability to trade at three different times, and the option to receive alerts. I want to get an idea of what that will cost me. It will enter trades on all blue take one contract out at a fixed point, move the stop to break even
I need an MQL5 indicator that identifies reversals without repainting or placing signals with an offset. The goal is to minimize lag and reduce whipsaw trades. Desired results are similar to the attached image. Requirements: - No repainting - No signal offset - Emphasis on reducing lag - MQL5 compatible - Clear, concise code If you have the expertise to create a reliable, high-performance indicator, let's discuss
I'm looking for a skilled trader/developer to share a proven scalping strategy on M1-M5 timeframes without using Martingale, Grid trading, or Hedge. Requirements: - Minimum trade duration: 2 minutes - Lot size: <20 - Proof of skill: Provide MT4/MT5 trade history report (PDF/HTML) - No High Frequency Trades - GMT+1 timezone, flexible hours - Price negotiable, performance-based compensation possible If you're a
Create a script. The purpose of the script is to catch changes in the trend and execute a trade. We will include a single indicator that is used as a signal. The stop loss is defined. Here is the blueprint: The indicator is Donchain Channels. The parameters are Lenght 20, Offset: 0. The timeframe is 1H. Instrument is EUR/USD. Condition: use candle close as parameter to execute a BUY or SELL order. if the Donchain
MT5 30 - 50 USD
I'm looking for an experienced MQL5 developer to help with backtesting, optimization, and VPS setup for a prop firm EA on XAUUSD (Gold). Scope of work - Backtest and optimize using high-quality tick data from Dukascopy or Polygon (2020–2025) - Perform Monte Carlo and Walk-Forward testing to optimize parameters like ATR multipliers and risk % - VPS installation and configuration for continuous MT5 operation - Apply

Project information

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