In an uptrend (defined by an SMA filter), this EA will place a buy order after a bullish bar closes (a "swing", or retracement from the major uptrend). The order will be at the high of the bullish bar plus an "x" number of "breakout" pips. The order will be executed if the trend resumes and the EA will place a Stop Loss at the support of "x" number of bars and a Take Profit objective (in pips)
The same is true for opposite conditions for short trades. The variables in bold can be changed in the EA settings according to the trader preference.