I'm trying to plot the SMA of the assest ABC1 - ABC2 on fifteen minute bars.

So I have a consolidator that I can get the 20 period SMA of 15 min bars for ABC1 and another one for ABC2.

I can't figure out how to get the SMA of (ABC1.price - ABC2.price) with the 15 min consolidator.

I'm looking through documentation, but struggling.  Any help is appreciated.

Thank you,

Roger

Author