Script for bollinger band

Need script to backtest and also auto buy/sell on this strategy

buy: when close of DAY candle is above upper band

Sell: When close of DAY candle is below lower band

Timeframe: Day

Target:2%

Sl: 1%

NaMasTe TraDeR,

BUY SCRIPT:

CLOSE > BBT(CLOSE, 20, 2, EXPONENTIAL) 

SELL SCRIPT:

CLOSE < BBB(CLOSE, 20, 2, EXPONENTIAL)

Notes:

1) The timeframe settings are done in the Pi software and not programmed in the codes

2) Defining exit condition as a % to your trade entry price is not codeable on tradescript