OPEN-SOURCE SCRIPT

Dynamic Time Period Candles

Güncellendi
This indicator gives the dynamic history of the current price over various time frames as a series of candles on the right of the display, with optional lines on the chart, so that you can assess the current trend more easily.

In the library I found lots of indicators that looked at the previous xx time period candle, but they then immediately switched to the new xx time candle when it started to be formed. This indicator looks back at the rolling previous time period. With this indicator, you can clearly see how price has been behaving over time.

IMPORTANT SETUP INFO:
Initially, you must go into the settings and select the timeframe (in minutes) that your chart is displaying. If you don't do this then the indicator will look back the wrong number of candles and give you totally wrong results.

You can then setup how high you want the candle labels to be on the chart.
Then you can select settings for each candle that you want displayed. Anywhere between 1 and 5 different timeframes can be displayed on the chart at once.


I initially published an indicator called 'Dynamic 4-Hour Candle (Accurate Highs and Lows)', but this new indicator is so different that it needs to be forked and published as a separate indicator. The reasons for this are below:

  1. The original indicator only looked at the previous 4 hour time period. This indicator allows the user to select any time period that they choose.
  2. The original indicator only looked at one time period. This indicator allows to select between one and five time periods on the chart at once.
  3. The original indicator did not put lines on the chart to show the lookback period and the highs and lows of that time period. This indicator does both those things.
  4. The name of the original indicator in no way now describes what this new indicator is capable of, and would be very misleading to anyone who came across it. This new indicator has a name that much more accurately reflects what its' purpose and functionality is.
Sürüm Notları
I've added the ability to set alerts when each or any of the candles change colour. There is also an alert option if all the candles become the same colour, so you can use that to identify a really strong trend. (or the possibility that the trend could be about to reverse!)

When you create an alert on this indicator, in the Create Alert settings, use the 'Any alert() function call' dropdown menu to select which candle that you want to set the alert for. Each candle will require a separate alert to be set for it.
candleCandlestick analysishighlookbackLOWmultitimeframeperiodTIMEtimeframetrendTrend Analysis

Açık kaynak kodlu komut dosyası

Gerçek TradingView ruhuna uygun olarak, bu komut dosyasının yazarı komut dosyasını açık kaynak olarak yayınlamıştır, böylece yatırımcılar betiği anlayabilir ve doğrulayabilir. Yazar çok yaşa! Ücretsiz olarak kullanabilirsiniz, ancak bu kodun yayında yeniden kullanımı Ev kurallarına tabidir. Bir grafikte kullanmak için favorilere ekleyebilirsiniz.

Bu komut dosyasını bir grafikte kullanmak ister misiniz?

Feragatname