PureBytes Links
Trading Reference Links
|
I will admit I'm far from being a good code writer. I read an article on the TSI indicator and wrote it from the description. It's slightly different from the one just posted. It is one of my major indicators that I watch. Sounds crazy, but it works extremely well on one minute charts. (A little haphazard in the format below. I kept changing it a little and never put it in order. But it works)
Good Luck,
Randy
inputs: OverBought( 25 ), OverSold( -25 ),
length(25), length1(13), Length3(7);
Value3 = 100 * (XAverage(XAverage( (close - close[1]), Length ), length1));
Value4 = (XAverage(XAverage( AbsValue(close - close[1]), Length ), length1)) ;
Value1 = Iff(Value3 =0,0, Value3 / Value4);
Plot1( Value1, "TSI" ) ;
Value5 = XAverage(XAverage( (close - close[1]), Length ), length1);
Value6 = XAverage(XAverage( AbsValue(close - close[1]), Length ), length1);
Value2 = XAverage(100 *Iff(value5=0,0, Value5 / Value6), Length3);
Plot4( Value2, "2PlotInd-2" ) ;
Plot2( OverBought, "OverBought" ) ;
Plot3( OverSold, "OverSold" ) ;
|