You can copy paste the code or refer the screenshot.
Please make sure everything is in order as seen in the screen shot below. Make sure there are 4 spaces before "strategy.entry" and "strategy.close". Also change the setting to 100% equity to get accurate backtest results.
Contact us if there are any questions

 

 

//@version=4

strategy("Bull Eng", overlay=true)
//Defining the bulling engulfing pattern

beuc = close[1]<open[1] and close>open[1] and open<close[1]


//Preparing exit condition
rsiv=rsi(close,2)
if beuc
    strategy.entry("long",strategy.long)
if rsiv>90
    strategy.close("long")