OPEN-SOURCE SCRIPT

Joesax Red to Green with Alert V2 Candle Indicator

This indicator displays transitions of candles from red to green and from green to red on a chart, with the ability to set an adjustable percentage threshold. When a candle transitions from red to green and the percentage change exceeds the specified threshold, a red to green transition signal is issued. Similarly, when a candle transitions from green to red and the percentage change exceeds the specified threshold, a green to red transition signal is issued.

Parameters:

Percentage threshold %: Allows you to set the percentage threshold to determine when to consider the transition from one candle to another significant.
Description:
This indicator uses the absolute percentage change between the opening price and the closing price of a candle to determine whether the candle is red or green. When a candle transitions from red to green and the percentage change exceeds the set threshold, a red to green transition signal is issued. Similarly, when a candle transitions from green to red and the percentage change exceeds the set threshold, a green to red transition signal is issued. Alerts are triggered when such transitions occur.

This indicator helps traders identify significant directional changes on the chart, enabling them to make informed decisions during financial market analysis.
Candlestick analysisChart patternsmultitimeframe

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer