It takes a spread between two market symbols and creates a moving average type indicator. In this case, it shows when the ES is gaining on the 30 year bond. It would be great to have an input variable for the two symbols, so I could change them and use it on different markets.
Thanks,
John
&Spread := (Close Of "ES-067" / Close Of "ZB-067") * 100
&5EMA := MovingAvgX (&Spread , 5 , True)
&20EMA := MovingAvgX (&Spread , 20 , True)
&5EMA - &20EMA
Comment