[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Stocastic indicator for TS8 Code Conversion required for TS2000i



PureBytes Links

Trading Reference Links

Hi,

I need below given Stocastic indicator for TS8 code
conversion into TS2000i. TS8 ELD file is also
attached.


inputs: 
	PriceH( High ),  
	PriceL( Low ), 
	PriceC( Close ), 
	StochLength( 5 ), 
	SmoothingLength1( 5 ), { used to slow FastK to FastD
= SlowK }
	SmoothingLength2( 2 ), { used to slow FastD to SlowD
}
	SmoothingType( 1 ), { pass in 1 for Original, 2 for
Legacy }
	OverSold( 20 ), 
	OverBought( 80 ), 
	OverSColor( Green ),
	OverBColor( Red );

variables:
	oFastK( 0 ), 
	oFastD( 0 ), 
	oSlowK( 0 ), 
	oSlowD( 0 );
 	


Value1 = Stochastic( 
	PriceH,  
	PriceL, 
	PriceC, 
	StochLength, 
	SmoothingLength1, 
	SmoothingLength2, 
	SmoothingType, 
	oFastK, 
	oFastD, 
	oSlowK, 
	oSlowD ) ;

Plot1( oSlowD, "SlowD", Cyan );
Plot2 (OverSold, "OverSld");
Plot3(OverBought, "OverBot");

{ Color criteria }
if Plot1 > OverBought then 
	SetPlotColor( 1, OverBColor ) 
else if Plot1 < OverSold then 
	SetPlotColor( 1, OverSColor ) ;

{ Alert criteria }
if Plot1 crosses over OverSold then
	Alert( "Indicator exiting oversold zone" )
else if Plot1 crosses under OverBought then
	Alert( "Indicator exiting overbought zone" ) ;


Thanks

With kind regards
Muhammad


		
__________________________________ 
Start your day with Yahoo! - Make it your home page! 
http://www.yahoo.com/r/hs

Attachment: Description: 4245849750-% D.ELD