Script

Can you please provide script for following twitter post.

Hi Deepak,

Use this SWITCH() function in a Show View on a chart of SPX:

d1 = GETDATA(CODE=VIX:CBOEI);
l1 = LOW(d1) CrossesBelow 13;
h1 = HIGH(d1) CrossesAbove 20;
s1 = SWITCH(l1, h1); 
s1 ChangeTo 1
1 Like