this is my trading strategis which works

 
hi...
I have difficulty to write a Expert Advisor so someone please help me to write this to MT4 code.

if yesteday was up (open is lower than close)
then today is buy currency when break Resistance 1 and stoploss 30, target is next resistance (R2) minus 5 pips.
if yesterday was down
then today is sell currency when break support 1 and stoploss 30, target is next support (S2) plus 5 pips.

all above R1/R2 S1/S2 are according to pivot teori.

thanks in advance

please send it to fadil75@gmail.com
Reason: