Nifty 30 min 2nd candle breakout

I want a code for Nifty 30 minutes 2nd candle breakout strategy with a stoploss is 2nd candle range, exit at close of 11th candle of the day and a buffer of 5 points. Please help.