Buy & Sell trigger

I have 2 query.

  1. I want the streak should trigger buy/sell if the price break first 15 min high or low with 1 points butter on either side.
  2. Want should be written to trigger buy if the price move above/below specific points considering the open price.
    For e.g.
    Considering NiftyNovFut
    Buffer points : 14
    Open price : 10450

So buy should trigger if the price move above 10454 i.e. (Open price {10450} + buffer points { 14}) and vice versa.

Thanks in advance for help.