Hi Team, Greetings for the day, thanks a lot for the extensive support.
I wrote the VIDYA indicator formula in python (copied below), after compiling the code the indicator values are not matching with values on ChartIQ charts shown on the Kite UI. But it matches exactly with the Trading view source. Could you please help me in fixing my code.
I want to get the values that are displayed on Chart IQ.
Here is my method: def vidya(self, input_list, prev_vidya=None, period=5): vidya_list =  if prev_vidya is None: prev_vidya = 0.0 multiplier = 2/(period+1) deltas = numpy.diff(input_list) for index in range(period-1, len(deltas)): diff = deltas[index-period+1:index+1] up_sum = round(diff[diff >= 0].sum(),self._indicator_precision) down_sum = round(abs(diff[diff < 0].sum()),self._indicator_precision) if up_sum == 0 and down_sum == 0: cmo = 0.0 else: cmo = abs((up_sum-down_sum)/(up_sum+down_sum)) prev_vidya = round(((input_list[index+1] * multiplier * cmo) + (prev_vidya * (1-(multiplier*cmo)))), self._indicator_precision) vidya_list.append(prev_vidya) return vidya_list
Also, please let me know the difference in VIDYA algorithm between ChartIQ & Tradingview