some1o1

HEIKIN ASHI COLOUR CHANGE ALERT

This can be used to trigger an alert if Heikin Ashi bar changes color :)
Remove from Favorite Scripts Add to Favorite Scripts
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)
this is only accurate for the 8 hour chart, how can i make it accurate for the 1 hour?
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
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?
+16 Reply
thr0nex layhau
@layhau, make an alert, when the plot crosses 0.5 :)
Reply
Home Stock Screener Forex Screener Crypto Screener Economic Calendar How It Works Chart Features Pricing House Rules Moderators Website & Broker Solutions Widgets Charting Solutions Get Help Feature Request Blog & News FAQ Wiki Twitter
Profile Profile Settings Account and Billing TradingView Coins My Support Tickets Get Help Ideas Published Followers Following Private Messages Chat Sign Out