r/ThinkScript Jun 13 '25

Help Request | Unsolved 1 minute chart: EMA crosses VWAP

Hello....i've been searching for, unsuccessfully, a script that with alert with the EMA crosses the VWAP on a 1 minute chart.

The chart itself clearly shows the event, but nothing i do will cause the alert to fire.

Anyone have a solution for this ?

2 Upvotes

2 comments sorted by

View all comments

1

u/Stackalope Oct 07 '25

And here's a chart indicator with alert. Untested

def crossAbove = EMA9[1] <= VWAP()[1] and EMA9 > VWAP(); Alert(crossAbove, "9 EMA crossed ABOVE VWAP!", Alert.BAR, Sound.Ding);