Need Code to store in arrays the values of ZZ Points and their FIBO retracement levels

MQL5 Индикаторы

Работа завершена

Время выполнения 3 дня

Техническое задание

I need a developer to write to create and deliver me the source code for a standard Zig Zag indicator which stores the last 10 Zig Zag High and 10 Zig Zag Lows into 2 arrays and calculates the FIBO ratios between the ZZ Points (and stores those values into arrays as well).

I need to be able to integrate this code as a function into an EA I am working on and which will function in MT4. For that, I need be able to to easily extract the values from this indicator/function.

Note: the code should be well explained, with commentaries inserted at every step to allow me to follow and verify the logic.


Phase 1 calculation and storing of ZZ High and Lows:

The information concerning the prices and the candles of the previous Zig Zags, as well as the current Extremum 0, should be stored.


The information should be stored in arrays like this:


Prices of the Zig Zag points:

ZigZagHighCandlesArray[Price1,Price2,Price3,etc.]

ZigZagLowCandlesArray[Price1,Price2,Price3,etc.]


Candles of the ZigZag points:

ZigZagHighPricesArray[CandleOfZigZagHigh1, CandleOfZigZagHigh2, CandleOfZigZagHigh3,etc.]

ZigZagLowPricesArray[CandleOfZigZagLow1, CandleOfZigZagLow2, CandleOfZigZagLow3,etc.]


Note: current candle is 0, the past candle is 1, etc. 

 

Current Extremum 0 (which is the one that repaints) will not be placed into these arrays (until Extremum0 becomes an actual ZZ Swing point and then the value goes into the array at position 0), but will be retained into a variable of its own.

The calculations should be done On Init for the past history and then once per candle/timeframe of my choice.


Notes:

Graphical display: I need to have an easy way in the code to choose to display the indicator on the chart or not, so that I can turn it off and just get the result of the calculations (by printing them in the journal).

I need to be able to modify in the code the values of the ZZ (depth,deviation, backstep), as well as the timeframes it applies to.

The values in the arrays will be printed in the journal in an easy-to-understand way at each new candle, so that I can verify.

 

Phase 2: Fibonacci retracements based on ZZ


In phase 2, I need the code to calculate the FIBO retracement levels between the ZZ High and ZZ Lows and store them into 2 arrays.

One array should store the values of FIBO retracement of which the final point of the retracement is a ZZ High, and the other array should store the FIBO retracement levels of which the final point of the retracement is a ZZ Low.

So the arrays should look like this:

RetracementsToZigZagHighAsFinalPoint[23,38,44,120,etc]  (the values inside are the % resulted from the calculation).

RetracementsToZigZagLowAsFinalPoint[12,140,66,120,etc]

The current retracement level between the Last ZigZags of which the final point is Extremum 0 should be stored into a separate variable of its own (until Extremum0 becomes an actual ZZ Swing point and then the value goes into the array at position 0).

The calculations should be done On Init for the past history and then once per candle/timeframe of my choice.

The values in the arrays will be printed in the journal in an easy-to-understand way at each new candle, so that I can verify.

Откликнулись

1
Разработчик 1
Оценка
(119)
Проекты
127
41%
Арбитраж
3
33% / 67%
Просрочено
0
Свободен
2
Разработчик 2
Оценка
(225)
Проекты
285
41%
Арбитраж
15
13% / 47%
Просрочено
67
24%
Свободен
3
Разработчик 3
Оценка
(64)
Проекты
144
46%
Арбитраж
20
40% / 20%
Просрочено
32
22%
Работает
4
Разработчик 4
Оценка
(45)
Проекты
59
14%
Арбитраж
31
26% / 52%
Просрочено
34
58%
Свободен
5
Разработчик 5
Оценка
(170)
Проекты
203
47%
Арбитраж
5
20% / 60%
Просрочено
3
1%
Свободен
6
Разработчик 6
Оценка
Проекты
0
0%
Арбитраж
0
Просрочено
0
Свободен
7
Разработчик 7
Оценка
(252)
Проекты
462
26%
Арбитраж
139
20% / 60%
Просрочено
100
22%
Свободен
8
Разработчик 8
Оценка
(7)
Проекты
13
0%
Арбитраж
5
20% / 60%
Просрочено
0
Свободен
9
Разработчик 9
Оценка
(195)
Проекты
395
28%
Арбитраж
155
20% / 52%
Просрочено
112
28%
Свободен
10
Разработчик 10
Оценка
(574)
Проекты
945
47%
Арбитраж
309
58% / 27%
Просрочено
125
13%
Свободен
11
Разработчик 11
Оценка
(69)
Проекты
146
34%
Арбитраж
13
8% / 62%
Просрочено
26
18%
Свободен
Опубликовал: 6 примеров
12
Разработчик 12
Оценка
(24)
Проекты
34
15%
Арбитраж
2
0% / 50%
Просрочено
8
24%
Свободен
Похожие заказы
Indicador Maximas e Minimas + Super Trend O Indicador MAX/MIN é um indicador de análise técnica para o MetaTrader 5 , desenvolvido para ajudar você a identificar regiões importantes de preço e possíveis oportunidades de compra e venda. O que ele faz MAX/MIN: identifica máximas e mínimas relevantes do mercado e mostra os preços no gráfico. HH / HL / LH / LL: ajuda a visualizar a estrutura do mercado, mostrando quando
Hello Traders, Have a trading strategy or idea you want to automate? I specialize exclusively in MQL5 development, helping traders turn their concepts into professional trading solutions. Custom Expert Advisors — automate your strategy and reduce manual execution Custom Indicators — transform your market ideas into powerful trading tools Fix & Debug — identify errors and get your existing code working properly
I DO NOT need any programming or strategy development. I already have a working NinjaTrader 8 automated strategy based on a 3/5 EMA crossover. I need you to run my existing strategy through NinjaTrader Strategy Analyzer/Optimizer, test the existing adjustable parameters, and find robust settings with the best profit factor and lowest reasonable drawdown. I will provide the existing NinjaScript ZIP. I do not want the
I'm looking for an experienced developer to create an automated gold trading bot. The bot should be compatible with MetaTrader 4/5 and TradingView. Key Requirements: - Automated trading bot - Compatible with MetaTrader 4/5 and TradingView - Implement scalping and swing trading strategies Ideal Skills and Experience: - Proficiency in trading algorithms - Experience with gold trading - Familiarity with MetaTrader and
I need a robust optimization of my MT5 EA, mainly for XAUUSD (Gold). Please optimize the existing adjustable parameters such as entry/exit settings, SL/TP, trailing/break-even settings, and any other strategy parameters that are appropriate. I want the optimization focused on stable profitability, low/moderate drawdown, and robustness rather than simply the highest possible profit. Please use out-of-sample testing
NinjaTrader 8 / NinjaScript Phase 1 build: convert an existing Auction Market Theory (AMT) strategy into objective, alert-only decision-support logic. Not a bot, no auto-execution — trades stay manual. Covers NQ/MNQ, ES, CL, MGC using 30-min TPO/Volume Profile context with 5-min confirmation: one 5-min close outside VAH/VAL = acceptance, close back inside = rejection. Dashboard shows bias, auction state, location
Hello, I need a custom NON-REPAINT MT5 indicator that gives sell/buy arrow signals 1–2 candlesticks before a spike on Crash and boom indices respectively occurs. Requirements: Works perfectly on MT5 Shows arrows before the spike (1–2 candles earlier). Non-repaint – once the arrow appears, it must stay. Should be accurate, not quantity — only quality signals. Must work on both demo and live accounts. I want the
Hello, I saw an indicator on TradingView and would like to know if you will be able to convert it for use on Thinkorswim platform? Thanks. if anyone can help me with it kindly do well to bid it urgent thanks looking forward too see you
calcVolume( void ) { //--- MqlRates rates[]; if ( CopyRates ( _Symbol , PERIOD_CURRENT , startTime, endTime, rates) > 0 ) { double rangeHigh = rates[ 0 ].high, rangeLow = rates[ 0 ].low; int count = MathAbs ( iBarShift ( _Symbol , PERIOD_CURRENT , startTime) - iBarShift ( _Symbol , PERIOD_CURRENT , endTime)) + 1 ; //---VERTICAL PRICE RANGE for ( int b = 0
Create an MT5 Expert Advisor (EA) for trading Gold (XAUUSD). The EA should provide BUY and SELL signals based on trend direction, market momentum, and price action. It should automatically place trades only when the entry conditions are met. Risk management: Use a small adjustable lot size. Include Stop Loss (SL) and Take Profit (TP). Include a maximum daily loss limit. Include a maximum number of open trades. Do not

Информация о проекте

Бюджет
80 - 140 USD
Сроки выполнения
от 1 до 8 дн.