I am trying to calculate KDJ of index, excluding specific timeframe. e.g. 1130-1430. Below is the code I used to calculate KDJ and apply to 1/5/15 mins bars