create a EA- please help

 

Hi,

Somebody can help me to create a EA?

Idea is very simple: at 0:00 GMT buy if (open+high+low+close)/4>close or sell if (open+high+low+close)/4<close of the previous day

TP is set as variable and SL is set as low or high of previous day

 
Reason: