The EA is based on the updown indikator, which will specify the trend direction. The EA use two MAs for build a "channel" (EMA28 high and EMA28 low calculatet) When a trend is specify a first bar no.1 is needed which have the bar body (open-close) between the two MAs. The next bar following is bar no.2 need a range open-close, which is at least double or greater the range (open-close) of bar no.1, and moves in the trend direction specify by the updown indicator. I position will be open at the close of bar no.2 when all requirements full fill. The position will close by take profit, trailing Stop, or updown indicator.
See the added chart for detail and also requirement for the programming.