TradingView
bigurb
10. Mai 2020 18:27

Individual Ticker DIX 

SPDR S&P 500 ETF TRUSTArca

Beschreibung

This is the "DIX" for the current ticker. Includes MAs/EMAs/regression built in. One issue that I have not taken the time to figure out is that it will not update until the next day. Monday's DIX will not show on here until Tuesday for example. I am sure it is a simple solution, I just have not taken the time to figure it out. If anyone knows the solution, PM me. Thanks.
Kommentare
luismz22
Hi, anyone more is having problems with data, it seems i can´t connect with quandl:finra
thanks
joapen
hello,
thanks for sharing this code. I have learned the concept of DIX as the way Squeezmetrics .com,

The question I have is related to the formula: iDIX = TOTALSHORT / TOTALV

Is this formula the same to the one used by squeezmetrics? or it attends to other root.

many thanks in advance
bigurb
@joapen, Same calculation for individual stocks. The Squeezemetrics DIX takes all 505 SPX tickers and dollar-volume weights it for the "composite" DIX you see on his website. This can't be done in Pine with the limitation on number of variables, but is easy to do in Python. In my YouTube you can find some more information on how to do it.

Thanks for the kind words, good luck to you.
joapen
@bigurb, thank you so much for your response and guidance,
oldercousin
Thanks for this! Just noticed a small error (i think) you are using smaLength for the ema instead of emaLength
bigurb
@oldercousin, Thanks for pointing it out, I will get it fixed.
Mehr