RENKO CHART not matching with PRICE CHART

Hello everyone,

This particular code below, does not match with the price data. I have tried the modified version also.
Can some one offer their view on this.

Renko Bars, code from two articles in TASC


A post was merged into an existing topic: Renko and heikenAshi Indicators