PureBytes Links
Trading Reference Links
|
If you expect someone to convert it, you should include the functions.
Someone who just has TS2000 will not be able to open your eld.
-----Original Message-----
From: Mr MUHAMMAD BABAR [mailto:fffffaraz@xxxxxxxxx]
Sent: Sunday, December 04, 2005 5:47 AM
To: omega-list@xxxxxxxxxx
Subject: Stocastic indicator for TS8 Code Conversion required for
TS2000i
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
|