I have an indicator on my trading platform that I am trying to replicate for backtesting.  In this indicator, I compare 2 moving averages to determine trend.  I want to be able to identify the crossover point to enter a trade, but I can't figure out how to do that here.  I've read a lot of forums and documentation and can't seem to find a way to do that.  I'm not sure consolidating and using a rolling window is the answer, but if it is, I can't figure out how to make it work.