fauxlife

Trendy Bar Trend Color

fauxlife Aktualisiert   
Trendy Bar Trend Color

Inspired by trend candlestick charts on other trading platforms. Changes bar colors to stay in trend much like Heikin Ashi candles without the ATR price distortion. This is done by comparing the HL2 and/or Open-Close values of current candlestick to the prior candlestick.
Versionshinweise:
Cosmetic only, experimental, not intended for use with trading

Update to script:
  • updated the Heikin Ashi calculation for trend coloration
  • Added ability to plot different bar types: High-Low bars without wicks or open & close data, or plot Open-Close bars without wicks
  • Option to only color the existing candlesticks instead of plotting different candlestick types
  • Experimenting with simple ability to highlight possible tops & bottoms of a trend; though it chases trends in live trading. Be careful
  • Experimenting with ability to grey-out consolidation ranges

If you wish to use the different candlestick types, it's advised to hide the existing candlesticks via chart options


Chart with High-Low bars and tops & bottoms highlighted:

Chart with High-Low bars, tops & bottoms highlighted, and consolidations painted grey:
Versionshinweise:
Edit 3:
Corrected Heikin Ashi calculation (again)

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?