SGX Nifty or Singapore Nifty is a derivative contract of the Nifty 50 index which is the benchmark index of NSE in India. SGX Nifty trades for 21 hours in a day while Nifty 50 trades only for 6 hours and 15 minutes. Traders in India miss out on a lot of price action which happens on the Singapore Nifty. This code which is originally inspired from @Gustavorubi has been modified to track SGX Nifty's movements outside Indian market hours. This will help intraday traders to identify support and resistance levels which are not seen on Nifty 50 futures.
This source code is inspired from GustavoRubi's code on FX Sessions.