TradingView
bitcoin_bing
Feb 26, 2019 9:18 AM

Heikin Ashi Candle Colour Change Alerts 

Bitcoin / U.S. dollarBitstamp

Description

This script allows you to set alerts for Heikin Ashi up and down candles. For example, you may wish to exit a trade when the first down candle is printed after a sequence of up candles.

Release Notes

No changes.
Comments
FXRevelation
Hi! Thank you very much for this. I was wondering if it is also possible to create an alert as soon as a normal candle (i.e. Japanese candle) changes its color? Appreciate any help. Thanks!
BillionsBetter
This is great1 How would we go about to actually send alerts to the app, ONLY when the color changes instead of every time the bar is stil the same color?
dotdip17
@BillionsBetter, yeah that would be nice, who knows the code ?
Iwishtoknew22
@dotdip17,
@dotdip17,
First this at the beginning of code:
var bool showLong = na
var bool showShort = na
var bool showClose = na
after this :

showLong := showOnlyFirstSignal ? your bull cond. [1] : bullconditii
showShort := showOnlyFirstSignal ? your bear cond.[1] : bear condition
showClose := showOnlyFirstSignal ? not bull and not bear[1] : not bull and not bear cond..

var bool = greencand red candle
greencandle = na(greencandle name or condition[1]) and condition ? condition : na
red candle = na(red candle condition[1]) and the same? thesame: na

However You can search for Indicator named Kozlod candle color change or something like this.
johnrweb
@BillionsBetter, @dotdip17 Did you guys ever figured out how to set the alert for only when the color changes? If you got it figured out, please let me know. Thanks.
sebfrcan
Thanks a lot really helpful i use this everyday the only indicator i need to trade with 100x this is a perfect 100% indicator i love it with scalping work great in 2022 !!
toppcat
my bad didn't read about the code. Where would I paste it. Never coded for an alert.
toppcat
I guess you could use it for a single color change one time and reset every time for the oposite color. I'm doing this now on the five minute on 6 pairs but it's driving me nuts toggling on and off over several pairs and back and forth. Can't focus on charts.
toppcat
doesn't work. The only options will alert you every bull candle or every bear candle. no setting for candle changes from one to the other. Might as well just set an alarm every five minutes if on the five minute chart and look at all the pairs to see when they change. So many alarms yo cant use it. It's a shame.
majidnezami4
hi
thanks for indicator
if you put the sound alert on it is much better
More