Alert when SPX and VIX move in same direction


0
0

How would I create a recurring alert notification when the SPX and VIX move in the same direction during a day or 2 day time period? I’m thinking this might create a short term topping period for SPX (or SPY).

Marked as spam
Posted by (Questions: 5, Answers: 1)
Asked on November 12, 2021 9:56 am
189 views
0
Private answer

I have not tested this but this should do the trick:

def spxClose = close("SPX");
def vixClose = close("VIX");
plot scan = spxClose > spxClose[1] and vixClose > vixClose[1];

Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on November 12, 2021 1:01 pm