OPEN-SOURCE SCRIPT
Candle Averages (Jonzi/Galaxy) with Alerts

This indicator is used to highlight outlying candles.
Our script takes the average of the trailing candles and then highlights and/or places a symbol at the candles outside the average.
Example: Your settings use the previous 20 candles and combine the range of each candle.
Divide by 20 and get the average. Let's assume the average is $10
Now if you have your settings at highlighting candles 50% larger than the average, once a candle gets to $15, the indicator would trigger the candle to be highlighted and/or place a symbol of your choice.
In case you don't want to pay attention to the consolidation, you can use the alerts feature. Just go on the timeframe you'd like to be notified on, set an alert for either a down close or up close trigger.
Our script takes the average of the trailing candles and then highlights and/or places a symbol at the candles outside the average.
Example: Your settings use the previous 20 candles and combine the range of each candle.
Divide by 20 and get the average. Let's assume the average is $10
Now if you have your settings at highlighting candles 50% larger than the average, once a candle gets to $15, the indicator would trigger the candle to be highlighted and/or place a symbol of your choice.
In case you don't want to pay attention to the consolidation, you can use the alerts feature. Just go on the timeframe you'd like to be notified on, set an alert for either a down close or up close trigger.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.