DALE°!TCI Indicator !Coded by Bill Shalasha on 8/9/01 !Finaly, here is the hard-code for the TCI indicator. !What a waste of countless hours it has been though, and only because the formula in the Technical Reference manual was !missing an absolute sign!!!. Had to use some reverse math and lots of trial-and-error to pinpoint the error in the formula. !!====================================== !! TCI Indicator Hard-Coded. n1 is 10. !! Channel periods. n2 is 21. !! Average periods. AP is ([high] + [close] + [low]) / 3. ESA is expavg(AP, n1). D is expavg(abs(AP - ESA), n1). CI is (AP - ESA) / (0.015 * D). TCI is expavg(CI, n2). !!==================================== Rule Library˙˙ CCodeView