Basis minus its EMA is equivalent to fractionally differentiating the series. Summing the results equals re-integrating it. You should end up roughly where you started with some smoothing and lag. WTF is the rationale behind this?
Hi Kevin. I don't ever really work with the raw premium unless I am comparing a smoothed or detrended process against it.
I need to measure the instantaneous movement in the basis against movements in other instruments. This is the reason I work with differentials of the basis, and often use averages that employ various weighting schemes.
Here's a good picture of the index basis, which is often called the futures premium.
(this chart is produced in Excel using VBA)
This formula SUM {BASIS-EMA[BASIS]} is used to recover the original basis process, as you noted, with some smoothing and lag. This is a longer term process for my systems.
Every data series (thinkScript) is aggregated to minute bars anyway. This means that some smoothing and lag is inevitable. Compare a minute bar to the Excel VBA chart to see this.
The PREM (futures premium) is actually very, very noisy due to the sheer number of execution algos running in the cash and futures markets.
There are also a multitude of various types of algos that are either trading index/cash market spreads or even market making in other instruments and synthetics based on futures liquidity.
Thanks for your comment, and for taking the time to read my thread.
Last edited:


- like some bank might have a special relationship with someone). However, it's hard to really know what people already have on the books that's gonna roll closer (e.g. there was a large 10 year SPX position that might be expiring around this march). It's also hard to know what they got on the exotics or light exotics side of the business - like we rally up 2% and all of the cliquets are now ATM and make them long gamma.