Are you using a custom indicator for that RSI divergence? If so, you can use that info to compare to the MA info.