I have a system that is like to backtest that uses alligator Williams lines. My issue is getting price in relation to the sma line that’s moved forward by 8 bars. I’ve done some googling but couldn’t really find an idea they fits. 

Basically I want to know if price is above or below an sma line that’s been moved forward. Is this possible? I have a custom indicator coded in mt4 but I’m having a hell of a time reworking it.