displaced moving average

#1
Hi people. I am wondering if anyone knows how to write a formula for a displaced moving average (DMA) crossing above a simple or exponential moving average (SMA/EMA), as an exploration, like a 14,-7 DMA crossing above a 15 EMA, 2 or 3 days ago.
Thanks
 

Similar threads