Sector Rotation Model
This Study is adapted from a ThinkorSwim script called Sector Rotation Model. I use 7 sectors (XLK, XLY, XLI, XLC, XLF, XHB, XLE) as risk-on trades and 4 sectors (XLRE, XLP, XLV AND XLU) as risk-off or defensive trades. When the histogram is positive that implies risk-on and vice-versa. Provided as is.