TradingView
deimosaffair
Sep 1, 2016 12:27 PM

alert!!!! 

Ethereum / BitcoinPoloniex

Description

alerts work over values of plots on the chart. could not find a way to add an alert when a strategy is triggered.
so, i created an alert chart that uses the same conditions as the strategy(i published the example strat in my previous script). an alert chart should be mostly zero, but when the strat fires up, the alert = 1, and when the strat fires down, alert = -1. this way it's easy to check the chart for alerts.

but, if i'm looking at the cahrt and see the strat's arrows, what's the point? well, the point is that we can add alerts to this chart, to send emails, popup on screen, start screaming, whatever. so that now i don't actually need the chart in screen all the time :)

since this alert chart behaves so nice, values = [-1,0,1] to add an alert is just setting it's value >0.5, or value > -0.5 :)
note: aloert is not actually in the script, it has to be added manually using the button. if Pine has a way to add alerts programatically, i couldn't find it
Comments
yusef0526
Hi, I've been trying to to find out, without success, how to set up an alert for pivot reversal strategy indicator. can you help me out?
TheJakeness
@yusef0526, I'm also trying to figure this out. Did you find out?
padmayogesh
@yusef0526, have you managed to setup an alert for an indicator? thanks
More