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)

Comments

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?
+22 Reply
thr0nex tradecryptoeasy
@tradecryptoeasy, make an alert, when the plot crosses 0.5 :)
+2 Reply
this is only accurate for the 8 hour chart, how can i make it accurate for the 1 hour?
+13 Reply
Can someone show hot to set it up in the alerts and an example?
+7 Reply
Just want it to buy once
and next time it's going to buy is when it's opposite color
Reply
very interesting
someone who wants to put up a picture of how an alurt is going to look
Reply
Home Stock Screener Forex Screener Crypto Screener Economic Calendar About Chart Features Pricing Refer a friend House Rules Help Center Website & Broker Solutions Widgets Charting Solutions Lightweight Charting Library Blog & News Twitter
Profile Profile Settings Account and Billing Referred friends Coins My Support Tickets Help Center Private Messages Chat Sign Out