Counter trend trading with moving tp help...

 

I am trying to create EA based on counter trend strategy below;

EA checks trend with SMA 14 for first trade only,

if SMA up then EA will sell. but never opens buy, if there is sell opened.

if sell > 0 then place sell limit = Last sell price+stop distance-Stop increment. e.g; 1.3565+0.0030-0.0003=1.3592

Lots = 1,2,4,8... (martingale)

The most difficult thing for me is to modify takeprofit of each trade.

when a trade closed in profit, check SMA trend and restart cycle.

Example of buy trades below...

Files:
capture.jpg  29 kb
Reason: