Super trend with Buffer price

Hi, Can you help me to create Algo in streak on Super trend .
Once the super trend gives the buy signal then i want to buy in next candle once the price crossed 5 points above from previous candle high price.