Displaying average zigzag-leg-distance in points and bars // seperate for up- and downtrends

Trabalho concluído

Tempo de execução 2 dias
Comentário do cliente
Very good support and responsiveness... I look towards new collaborations! greets
Comentário do desenvolvedor
Very thanks for order! Please let me know if you need programmer!

Termos de Referência

Hi, i need a lightweight indicator, that can be used on around 30+ fx pairs at the same time. The indicator should be addible multiple times on the same chart calculating different timeframes.


My idea is inspired from ATR Value Indicator: https://www.mql5.com/en/code/21175. But instead of displaying a multiplied ATR value, i would like to display average zIgzag leg-lengths in points AND number of bars, to find the right stoploss.

So the indicator should count distances and bars for every ZigZag leg from the past n bars (input parameters). The output should be seperated in uptrending and downtrending leg-distance points and bars and merged together at the end of the list (see below). 

Lets say that the indicator counts 15 up- and 15- downtrending legs, so it should count these seperate leg-distance points and bars and divide these with 15 to get the average leg-length.


Example for displaying in M15 Chart (GBPNZD) with setting ZZ_ExtDepth = 40: 

Avg. uptrending bars (20000) : 50 Bars  | description: avg. number of BARS in uptrending zz-legs for 20000 past bars

Avg. uptrending points (20000) : 1000 Points | description: avg. number of POINTS in uptrending zz-legs for 20000 past bars

---

Avg. downtrending bars (20000) : 60 Bars  | description: same as above for downtrending zz-legs

Avg. downtrending points (20000) : 1500 Points | description: same as above for downtrending zz-legs

---

Avg. merged bars (20000) : 55 Bars | description: (uptrending bars + downtrending bars) / 2

Avg. merged points (20000) : 1250 Points | description: (uptrending points + downtrending points) / 2

---

StopLoss (3) : 417 Points | description: (merged points / 3)


Values with example input parameters (inputs should be free to choose):

General settings

Timeframe = current, M1, M3, M5 .... so on

BarsBack = 20000

ZZ_ExtDepth = 40

ZZ_ExtDeviation = 5

ZZ_Backstep = 3

SL_Divider = 3

Display settings

Font_size = 15

TextColor = colorpicker

TextCorner = Left Lower

Offset_x = 150

Offset_y = 150


greets


Respondido

1
Desenvolvedor 1
Classificação
(1156)
Projetos
1462
63%
Arbitragem
21
57% / 10%
Expirado
43
3%
Livre
2
Desenvolvedor 2
Classificação
(5)
Projetos
3
0%
Arbitragem
19
0% / 100%
Expirado
0
Livre
Pedidos semelhantes
Budget depends on experience and quality. I prefer to start with a semi-auto version first, and later upgrade to a full-auto version if the logic works correctly. I need a custom semi-automatic MT5 Expert Advisor for US30 based on an ICT/SMC-style workflow. This is NOT a martingale, grid, scalping spam, or arbitrage bot. I want a clean semi-auto trading assistant that helps me identify and execute high-quality setups
Core Strategy Logic (Symmetrical): The bot monitors Price Action relative to the Value Area (VAH/VAL) and Previous Day High/Low (PDH/PDL). ​Trigger: Price breaks PDH/PDL but fails to sustain (Rejection Wick/TPO Tail). ​Orderflow Filter: Execution requires a CVD reversal (Delta turn) and an Iceberg Order (min. 40 contracts) detected at the rejection level. ​Entry: Market Order (Buy/Sell) once price re-enters the Value
Supply and demand EA 30 - 200 USD
Hello I have a Working Manual strategy which I have been trading for years , i need a Good coder who can help me automate it , it needs to be multi timeframe analysing , not the simplest strategy / code out there I would say . probably a big effort project but would be very happy about it and generous
Hallo, ich suche jemanden, der ein automatisches Trading-System für MetaTrader 5 erstellt. Dieses System soll Telegram-Signale automatisch traden . Meine Anforderungen: 1. Multi-TP Trades: • Für jedes Take-Profit-Level (TP1, TP2, TP3 …) wird ein eigener Trade eröffnet. 2. Stoploss: • Jeder Trade bekommt automatisch den definierten Stoploss gesetzt. 3. Automatische Ausführung: • Die Trades sollen sofort ausgeführt

Informações sobre o projeto

Orçamento
50+ USD
Prazo
para 7 dias