TradingView
Trader_Morry
25 déc. 2022 04:57

ZigCycleBarCount [MsF] 

EUR/USDOANDA

Description

Japanese below / 日本語説明は英文の後にあります。
Based on "ZigZag++" indicator by DevLucem. Thanks for the great indicator.
-------------------------
This indicator that displays the candle count (bar count) at the peaks of Zigzag .
It also displays the price of the peaks.

You can easily count candles (bars) from peak to peak. Helpful for candles (bars) in cycle theory.

This logic of the indicator is based from the mt4 zigzag indicator .

Parameter:
Depth = depth (price range)
Backstep = Period
Deviation = Percentage of how much the price has wrapped around the previous line.

Example:
Depth = 12
Backstep = 3
Deviation = 5

In this case, the price range is updated by 12 pips or more (Depth), and after 3 or more candlesticks line up (Backstep), if the price deviates from the previous line by 5% or more (Deviation), a peak is added.
-------------------------
Zigzagの頂点にローソクカウント(バーカウント)を表示するインジケータです。
頂点の価格も表示します。

頂点から頂点までのローソク(バー)を容易にカウントすることができます。
サイクル理論のローソク(バー)に役立ちます。

Zigzagロジック自体はMT4のzigzagインジケータを流用しています。

<パラメータ>
Depth=深さ(値幅)
Backstep=期間
Deviation=価格がどれだけ直前のラインの折り返したかの割合

例:
Depth=12
Backstep=3
Deviation=5
この場合、値幅を12pips以上更新し(Depth)、ローソク足が3本以上並んだ後(Backstep)、価格が直前のラインの5%以上折り返せば(Deviation)、頂点を付けます。

<表示オプション>
Label_Style = "TEXT"…テキスト表示、"BALLOON"…吹き出し表示

Notes de version

Improvement:
- Pine script version up v4 to v5.
- Added to HH/LL belong to count bars in option. If you show HH/LL labels then select the 'Show HH/LL'.
Commentaires
RozaniGhani-RG
Trader_Morry
@RozaniGhani-RG, thank you. I'm so happy to be of help to you.
vinikumar72
How to use। this repaints
Trader_Morry
@vinikumar72, Selecting "repaints" will change the values ​​of already displayed indicators (arrows, lines, etc.) each time the chart's latest bar is updated (or the chart is reloaded).
geewill001
Hello Trader_Morry, thanks for this indicator... But do you have a video or something that can help with how to set up and use maximally this beautiful indicator
Trader_Morry
@geewill001, I have not created a video or how to use about the indicator. If you have any questions, I will answer them to the best of my ability.
okor96
Hey can you add to count bars HL to LL to HL and LH to HH to HL or can you explain me how to edit code with that option that will be good for Ichimoku wave theory Tnx :D
Trader_Morry
@okor96, Added to HH/LL belong to count bars in option. If you show HH/LL labels then select the 'Show HH/LL'.
okor96
@Trader_Morry, Thank you but I was thinking about connecting HH and HH , LL and LL with lines on chart and count bars between it on chart only counts from HL to HH but dont have option to count bars from HH to HH or LL to LL or HL to HL that will be cool to have in script that helps with ichimoku wave theory (so i dont have to count it manually) Tnx for update :D
joemoneyy2020
Hey can you dm me because I can’t dm you at all and I wanna tell you that I want a indicator like ZigCycleBarCount [MsF] if you can make an indicator like this for me
Plus