[fikira] Divergences (RSI)

This script can be used with candlesticks , accompanied with " RSI + Divergences"

The calculation is different than my "Divergences ( Pivots )"

Thank you!
Catatan Rilis: Small improvements
Hilangkan dari Skrip-Skrip Favorit Tambahkan ke Skrip-Skrip Favorit


hi! Thank you for the great job! Can you explain briefly what is the "margin" setting and why it is useful?
fikira Crypto_Sisyphe
@Crypto_Sisyphe, Hi,

Well, sometimes with too much margin you get too much lines:

While margin 0 gives less lines:

Both has it advantages and disadvantages, the one gives too much lines, the other misses sometimes lines,
so you can play with it until you find what is right for you,
@fikira, Thank you for your answer, but the thing i don't get is the equation ex: ll1 > (ll2_ - ((ll2_ - ll0) * m). I guess it kinda fix a threshold for ll1 not to interfere too much with the line ll2 -> ll0 but i can't wrap my mind about how it works
fikira Crypto_Sisyphe
@Crypto_Sisyphe, Hi, very nice to hear you want to understand the script!
That is very pleasing! Thanks!
Well, the main objective is to ignore certain RSI tops/bottoms BETWEEN 2 points, for example, if a DIV between ll0 and ll2 is correct,
then we don't want to see an extra point ll1 piercing trough the DIV line, so I wanted to make sure the ll1 point is higher than the DIV line.

Since the line between ll0 and ll2 cannot be used as a value - if I'm not mistaken -
It is not possible to say that ll1 must be higher than the DIV line between ll0 and ll2, since the line cannot be used in such way.

So I needed to figure out something else. That is why I used the difference between ll2 and ll0, multiplied by the "margin" -> (ll2 - ll0) * m
and then substracted from ll2. This gives a limit where ll1 should be above. In that way there is some certainty that the DIV line between ll0 and ll2 isn't interfered by a ll1 in between, hope I've made it a bit clear...

@fikira, Hi and thank you for taking the time to answer! Yes pretty clear now ;) . I'm trying to improve my understanding of pine via clean public scripts as yours. Keep up the great work!
fikira Crypto_Sisyphe
@Crypto_Sisyphe, Great, very nice to hear, learned it myself in that way just over 7 months ago :)
amazing job
fikira LeLyonnais
@LeLyonnais, Thank you very much!
Are divergences in real time or 2 bars out?
fikira Lij_MC
@Lij_MC, It is about pivot points, it checks if the highest/lowest IS the highest/lowest, so the minimal bars at the right of the specific points is always at least 1 bar,
since for having a highest/lowest , the bar next to it needs to be lower/higher.

Then you can compare (divergences), so it always will lag 1 bar behind, seeing this at replay gives the impression it lags 2 bars, but this is just because it skips the period during 1 bar. I real time you will see the last Div blinking during the last bar period, when it closes, the arrow stays.

This is not repainting ;)
Beranda Penyaring Saham Penyaring Forex Penyaring Crypto Kalender Ekonomi Bagaimana Cara Kerjanya Fitur-Fitur Chart Harga Akun Refer seorang teman Tata Tertib Pusat Bantuan Solusi Website & Broker Widget-Widget Solusi Charting Perpustakaan Charting Ringan Blog & Berita Twitter
Profil Pengaturan Profil Akun dan Penagihan Teman yang di refer Koin Tiket Dukungan Saya Pusat Bantuan Ide Terpublikasikan Pengikut Mengikuti Pesan Pribadi Obrolan Keluar