UnknownUnicorn508364

Double Bars

UnknownUnicorn508364 Aktualisiert   
This is a very simple script... it does not necessarily create signals. It only provides useful feedback via statistics & probability.

There will be a green background if there are two green bars in a row, and it will stay green until two red bars show up (in which it switches color to red until two green bars show up again).

The fuchsia arrows show the double greens, and the blue arrows show the double reds, as to emphasize the color continuation.

The main drawback is that even though this shows the most common bar color, it does not show the *significance* of each bar. Therefore, use for statistical analysis only unless you complicate the formula by adding significance and/or volatility.

The last bar *does* repaint. If anyone figures out how to not show the values (background and arrow) for the last bar only, add a comment! I would like to show the last bar as a "projection" bar (dimmed with transparency, so it appears as less meaningful due to it not being completed yet).
Versionshinweise:
Added input options for type of "source".
Open-source Skript

Ganz im Spirit von TradingView hat der Autor dieses Skripts es als Open-Source veröffentlicht, damit Trader es besser verstehen und überprüfen können. Herzlichen Glückwunsch an den Autor! Sie können es kostenlos verwenden, aber die Wiederverwendung dieses Codes in einer Veröffentlichung unterliegt den Hausregeln. Sie können es als Favoriten auswählen, um es in einem Chart zu verwenden.

Haftungsausschluss

Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.

Möchten Sie dieses Skript auf einem Chart verwenden?