ka66

Mansfield Long-Range Background

ka66 Güncellendi   
Mansfield Long-Range Background. From Stan Weinstein's book.

This plots the high-low range for the last N years, including the current year.

It gives us an idea of any long-term resistance or support in play, which may affect how a trend behaves.

Note that one could just as easily check the yearly chart to get what this is showing, but it's convenient to have a template with all the elements required to emulate a Mansfield chart.
Sürüm Notları:
Bug fix: in our main weekly use case, Pine could not determine the no. of historical bars required.

And thus this long-range indicator really is meant for weekly charts effectively, with around 10 years of data.
Sürüm Notları:
  • Fix bug where we were missing bars in the weekly, and possibly showing things in reverse!
  • Fix bug where there were fewer years than the lookback period configured, now it's min of lookback and available years.
  • Explicitly error out if the indicator is on any non-weekly and non-yearly charts.
  • Replace year labels with triangle-ups/downs, and a tooltip which shows the year, for visual compactness.
Sürüm Notları:
  • Simplify code in parts
  • Better logic for displaying year labels, with adjustable vertical spacing.
  • Arrays only filled up to required lookback period at the most, now.
Sürüm Notları:
  • Still some weird bug in yearly display, when it should be one to one with the candles.
  • Remove use of yearly timeframes, simply sticking to the weekly timeframe, the main use case, where it works as expected.
Sürüm Notları:
Clarify Lookback Period title text to be more specific. Update chart!
Açık kaynak kodlu komut dosyası

Gerçek TradingView ruhuyla, bu betiğin yazarı, yatırımcının anlayabilmesi ve doğrulayabilmesi için onu açık kaynak olarak yayınladı. Yazarın eline sağlık! Bunu ücretsiz olarak kullanabilirsiniz, ancak bu kodun bir yayında yeniden kullanımı Kullanım Koşulları ile yönetilir. Bir grafikte kullanmak için favorilere ekleyebilirsiniz.

Feragatname

Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.

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