Is it possible? Building EA based on overlay indicator in window 1

 

Hi,

I have a trading method that uses two indicators overlay on each other. For example moving average overlay on RSI. Can I code an EA based on the cross of the moving average over the RSI levels (e.g., when the moving average is above RSI 70 line). Any coding ideas or suggestions. Thanks