Can we do candel alert notifications in telegram

I want watch if 15 or1h timeframe if candel is bullish engulfing or barish engulfing.
Index or options or stock.
Can you help me how to do that alert in telegram boat?

For example ce side get bulish engulfing then it should get nifty 25500 ce 15m bulish engulfing like this can we do or give me idea.

Hi @mahendra.beit ,

Refer the pseudocode-

watchlist = [NIFTY_25500_CE, NIFTY_25500_PE]
timeframes = [15m, 1h]

while true:
  for each symbol in watchlist:
    for each tf in timeframes:

      (prev, cur) = tsl.get_historical_data(symbol, tf)

      if prev is None or cur is None:
        continue

      # Bullish Engulfing
      if prev.close < prev.open AND cur.close > cur.open AND
         cur.open <= prev.close AND cur.close >= prev.open:
           print(symbol + " " + tf + " Bullish Engulfing")
           tsl.send_telegram_alert() # use tradehull codebase function.

      # Bearish Engulfing
      if prev.close > prev.open AND cur.close < cur.open AND
         cur.open >= prev.close AND cur.close <= prev.open:
           print(symbol + " " + tf + " Bearish Engulfing")
           tsl.send_telegram_alert() # use tradehull codebase function.

Thank you so much @Tradehull_Priya