this is an indicator on thinkorswim that i saw some guy use. i know its hard to see but if you can zoom in you'll see, and it basically has vertical bars showing the amount of divergence between a stock of choice and is compared to spy (s&p500) and basically showing how much a stock is following spy, for example on the 1 minute chart tesla was going down while spy was going up so tesla was showing weakness and the indicator had a vertical bar that was red (not following spy) and the height of the bar is how much it isn't corresponding with spy. another example is tesla was going up and spy was going up on the 1 minute chart, since it was following spy the indicator showed a black bar (following spy) and the height of the bar is based on how much is it exactly following spy, the more closely it corresponds the higher the black bar. please can someone code this indicator for me i have been trying to code this for like 5 days now non stop and i just cant figure it out.