some1o1

HEIKIN ASHI COLOUR CHANGE ALERT

This can be used to trigger an alert if Heikin Ashi bar changes color :)
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 a publication is governed by House Rules. You can favorite it to use it on a chart.

Want to use this script on a chart?
study("HEIKIN ASHI COLOUR CHANGE ALERT")

haclose = ((open + high + low + close)/4)
haopen = na(haopen[1]) ? (open + close)/2 : (haopen[1] + haclose[1]) / 2

UP = haclose > haclose [1]? 0:1
DOWN =  haclose <= haclose [1]? 1:0

plot(UP)
plot(DOWN)

Kommentarer

hi thank you for the good work. i'm trying this out at the moment, however, i can only have the alert triggered when the Heikin Ashi bar turned from Green to Red but not the other way round, any idea why or how can i fix it?
+23 Svara
thr0nex tradecryptoeasy
@tradecryptoeasy, make an alert, when the plot crosses 0.5 :)
+3 Svara
this is only accurate for the 8 hour chart, how can i make it accurate for the 1 hour?
+14 Svara
Can someone show hot to set it up in the alerts and an example?
+7 Svara
Just want it to buy once
and next time it's going to buy is when it's opposite color
Svara
very interesting
someone who wants to put up a picture of how an alurt is going to look
Svara
Hem Aktie-screener Forex-screener Krypto-screener Ekonomisk kalender Om Diagramfunktioner Priser Tipsa en vän Ordningsregler Hjälpcenter Webbsidor och mäklarlösningar Widgets Diagramlösningar Lightweight Charting Library Blogg och nyheter Twitter