I need a code for the followinf day trading strategy

The MACD parameters are 26 for the fast moving average, 12 for the slow moving average, and 9 for the signal line.

The Bollinger Bands settings are 12 for the moving average and 2 standard deviations for the bands.

Rules For Buy

  1. MACD above signal line and zero line
  2. Place buy stop order at the upper band of Bollinger Bands

Rules For Sell

  1. MACD below signal line and zero line
  2. Place sell stop order at the lower band of the Bollinger Band

Can someone provide me a code for this strategy

Got it from - http://www.tradingsetupsreview.com/simple-day-trading-strategy-bollinger-macd/

As per the above condition

Buy Script:

SET A = MACDSignal(13, 26, 9, SIMPLE)
SET B = MACD(13, 26, 9, SIMPLE)
LAST > BBT(CLOSE, 20, 2, EXPONENTIAL) AND CROSSOVER(A, B) = TRUE

Sell Script:

SET A = MACDSignal(13, 26, 9, SIMPLE)
SET B = MACD(13, 26, 9, SIMPLE)
LAST < BBB(CLOSE, 20, 2, EXPONENTIAL) AND CROSSOVER(B, A) = TRUE