Ganz im Sinne von TradingView hat der Autor dieses Skripts es als Open-Source veröffentlicht, damit Trader es verstehen und überprüfen können. Ein Hoch auf den Autor! Sie können es kostenlos verwenden, aber die Wiederverwendung dieses Codes in einer Publikation unterliegt den Hausregeln. Sie können das Skript den Favoriten hinzufügen, um es auf dem Chart zu verwenden.
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,
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...
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 ;)