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
http://www.amibroker.com/members/traders/07-2014.html6
http://www.amibroker.com/members/traders/10-2014.html3

Thanks

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