Crossing VWAP Sound Alert

S

stocksniper

Member
Is there is script that sound alerts you when candle crosses over or below vwap on the chart you are currently on. Sometimes you have multiple charts open and it would be nice to get an alert if a stock just touched vwap.
 
BenTen

BenTen

Administrative
Staff
VIP
Try this, did it on the go so I have not tested it yet.

Code:
def bull_cross = close crosses above VWAP;
def bear_cross = close crosses below VWAP;

# Alerts
Alert(bull_cross, " ", Alert.Bar, Sound.Chimes);
Alert(bear_cross, " ", Alert.Bar, Sound.Bell);
 
S

stocksniper

Member
Thank you so much, I'll test it in the morning. Thank you!
 
S

stocksniper

Member
@BenTen the alerts are giving false signals i think is giving me alerts on the top and lower bands as well not just the mid vwap itself.
 
BenTen

BenTen

Administrative
Staff
VIP
@stocksniper So you're saying that code gave you alerts for VWAP and also the bands? That shouldn't happen. Let me look into it.
 
S

stocksniper

Member
Well I dont have the bands on but it sure seem like it, cuz it was far away from the vwap on top and bottom on several stocks and it gave alerts.
 
$

$teve.00

New member
hi. can someone add an alert cross over for the standard tos vwap indicator? TY
 

Similar threads

Top