MA cross for EXITS only EA request

Hi all

Everywhere I look I see people needing alerts when 2 moving averages cross, but does anyone know of a simple EA/script which just closes all open orders (for the current symbol only, not ALL open orders on your MT4 platform) when 2 MA’s cross at bar close?

No alerts, no entries, no whistles and bells just a simple “MA1 has crossed MA2 (from either direction) so close all orders for this symbol”.

Any ideas anyone?

Thanks in advance