TradeScript- How to search same height candle?

My requirement is -

  1. Using Tradescript I want to find following –
  2. Once market opens by 9:15, after 5 min a candle is complete for a 5 min tf.
  3. Take that first 5 min candle and find out its HEIGHT as follows –
  4. After that for previous days find out all candles with same height of above and list them with date & time or highlight them on 5 min chart.
    Pls someone provide the Tradescript code for above & will this be a “Scripted Alert” or a “Scanner”?