JayRogers

Previous Period Levels - X Alerts

====== ABOUT THIS INDICATOR

- A simple but highly customisable display of previous higher time-frame
OHLC values, drawn using line.new and label.new. Nothing fancy but...

- Customised resolution input which excludes time frames lower than 1 hour
while extending the common higher reference inputs to include:

• 6, and 12 Hour
• 5 Day
• 3, and 6 Month
• 1 Year

- Alert conditions using an adjustable SMA to help reduce false positive
spam.

- Full visual customisation options for (almost) every aspect, so it can be
tuned to suit most individual preferences.

- In line with the miriad visual customisation options is the ability to
change the display format of the Labels, to show more or less information,
or disable them altogether.

====== REASON FOR STUDY

- To practice advanced user input option handling to allow for a full visual
customisation experience without stepping outside of, or interfering with,
the intended function of the indicator.

- Provide reasonably clear code commenting and structure in order to be
useful as a potential learning aid for others, and future reference for
myself.

====== DISCLAIMER

Any trade decisions you make are entirely your own responsibility.
I've made an effort to squash all the bugs, but you never know!
Sürüm Notları: Fixed:

Old lines were not being cleared as expected upon period change, this issue has been resolved to the best of my knowledge.

The fix introduced a new bug (which has also been resolved) where, although the old lines were clearing properly, upon entering
a new period the new lines would not draw the proper extension due to their x1 and x2 values sharing the same space. The fix
for this was to simply set the x1 value to the previous bar index, allowing the extension to draw immediately upon entering a
new period.

Added:

Unobtrusive dotted vertical line to denote the proper start of the period, as the horizontal lines now have their starting point set
back 1 candle. The lines use the colouring for the label background for now.

Changed:

Just a little code cleaning.

Cheers! -Jay
Sürüm Notları: Removed unused boolean check.

Will do one last full sweep of the code for cleanup soon - Jay
Açık kaynak kodlu komut dosyası

Gerçek TradingView ruhuyla, bu komut dosyasının yazarı açık kaynak olarak yayınladı, böylece yatırımcılar bunu anlayabilir ve doğrulayabilir. Yazara tebrikler! Ücretsiz olarak kullanabilirsiniz, ancak bu kodun bir yayında yeniden kullanımı Kullanım Koşulları tarafından belirlenmektedir. Bir grafikte kullanmak için favorilerinize ekleyebilirsiniz.

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

Yorumlar

500koin
Cevap Gönder
JayRogers PineCoders
@PineCoders, ..and Thankyou!
Cevap Gönder
500koin
Cevap Gönder
JayRogers LonesomeTheBlue
@LonesomeTheBlue, Thanks! It's been a while since I did the scripting things and stuff. So just a simple one to ease me back into it ^_^
Cevap Gönder
Exciting to see you back, your scripts have been instrumental in my journey and look forward to seeing more. Keep up the great work and thank you for sharing!
+3 Cevap Gönder
JayRogers allanster
@allanster, thankyou for the kind words, it's good to know my scribblings helped others on their journey!
Cevap Gönder
This was a great idea. It's simplicity makes it even better. Nice one.
Look forward to trying it out.
+1 Cevap Gönder
JayRogers MetatronCubist
@MetatronCubist, thankyou, i'm still watching it run for any weird bugs, but the only thing i have noticed is old lines remain upon a period change. A quick refresh fixes it, but i will look at properly fixing it shortly.
Cevap Gönder
@JayRogers, Awesome stuff, cheers!
Cevap Gönder
JayRogers MetatronCubist
@MetatronCubist, Drawing issues fixed and script updated.
Cevap Gönder
Ana Sayfa Hisse Senedi Takipçisi Forex Takipçisi Kripto Takipçisi Ekonomik Takvim Nasıl Çalışır Grafik Özellikleri Ücretlendirme Tanıdık yönlendirme Kurallarımız Destek Merkezi Web Sitesi & Aracı Kurum Çözümleri Görsel Bileşenler(Widget) Grafik Çözümleri Hafif Grafik Kitaplığı Blog ve Haberler Twitter
Profil Profil Ayarları Hesap ve Ödemeler Tavsiye edilen arkadaşlar Koinler Destek Kayıtlarım Destek Merkezi Özel Mesajlar Sohbet Çıkış