Hello,
I have a suggestion for an expert advisor. My problem is that I do not know how to code it myself. That is what I need you guys to help me with

.
The setup:
Indicators:
Bollinger Bands(20,2,0,close), 21ema shift 0 red, 21ema shift 1 blue and rsi 8
The criteria is :
currency is GBPUSD (maybe EURUSD and other also, haven't tested them)
SELL:
If after 9 am GMT and before 18 pm GMT GBPUSD on m30 has a 50 pip range (maybe more), and it has hit a high and then starts to retrace. If it then pushes through the 50 % retracement, and down through the median line of the Bollinger Band, 21ema red crosses lower through 21ema blue and Rsi moves down through 40.
set stoploss at entry+50pips
In the case of a buy situation the opposite applies. Up through median line, red ema up through blue ema and Rsi up through 60!!!
I have attached 3 pictures of this situation, when it happened yesterday. If you look at the account history, you can see that I closed half of my position at 50 pips profit and I moved my stoploss to break-even for the rest of the postion. I closed the rest of the position, when I noticed that price bounced off the 127,2% expansion. ( this is a very important expansion-level squareroot of 1.618).
Anyway, I hope someone will be able to code this strategy and maybe improve it with trailingstops, compounding.........