Moving average system, EA needed

Hello Friends,

Need an EA for system:

Price over Moving average: Only buy
Price below Moving average: Only sell

Entry buy:
Condition: Previous candlestick green
Enter on high of previous candle, stop loss: previous candle low. Exit 1:1

Entry sell:
Condition: Previous candlestick red
Enter on low of previous candle, stop loss: previous candlestick high. Exit 1:1

Options like multi time frame can be added.

Thanks,