Now, I have derived this code from Half Trend, after @jyotiprasad mentioned about it. And it was not difficult to convert to look like and work like Trend Trader Karan's Tool, who invested " Lakho Rupaya" and works on the basis of price action trading also.
Let me tell you guys, this is nothing but an ATR based system which people already traded as Half Trend,...