1. *nyTime*: Converts the current time to the New York timezone. 2. *nyHour and nyMinute*: Extracts the hour and minute of the current candle in the New York timezone. 3. *isNyMidnightCandle*: A boolean variable that checks if the current candle is the 12:00 AM candle in New York. 4. *bgcolor*: Colors the background of the 12:00 AM candle blue. 5. *plotshape*: Optionally, you can mark the 12:00 AM candle with a blue label above the bar for better visibility.
You can copy and paste this code into the Pine Editor on TradingView and apply it to your chart. Make sure your chart is set to the 5-minute timeframe.