home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1993 #2
/
Image.iso
/
finance
/
tas515dm.zip
/
EXAMPLES.ZIP
/
TOOMBS.TAS
< prev
next >
Wrap
Text File
|
1991-04-11
|
2KB
|
54 lines
{-----------------TOOMBS.TAS-----------------------------------------------}
#max_quotes 200
#OUTPUT_FILE 'TOOMBS.LST'
FORM_C_DUMP :=0;
FORM_D_DUMP :=0;
FORM_E_DUMP :=0;
FORM_F_DUMP :=0;
FORM_G_DUMP :=0;
FORM_X_DUMP :=0;
{--------------------------------------------------------------------------}
FORML_A : Array;
FORML_A := mov(stoch(20,1),5,'E'); {Formula #1}
{--------------------------------------------------------------------------}
FORML_B : Array;
FORML_B := mov(mov(stoch(20,1),5,'E'),5,'E'); {Formula #2}
{--------------------------------------------------------------------------}
If FORML_B[0] >= 84 then {Formula #3}
FORM_C_DUMP := 1;
else
FORM_C_DUMP := 0;
{--------------------------------------------------------------------------}
FORM_X_DUMP := FORML_B[0] - FORML_A[0];
{--------------------------------------------------------------------------}
If FORML_B[0] < 70 and (FORM_X_DUMP >= 4) then
FORM_D_DUMP := 2;
else {Formula #4}
FORM_D_DUMP := 0;
{--------------------------------------------------------------------------}
FORM_E_DUMP = FORM_C_DUMP + FORM_D_DUMP; {Formula #5}
{--------------------------------------------------------------------------}
If FORML_B[0] > 30 and (FORM_X_DUMP <= -4) then
FORM_F_DUMP := -1;
else {Formula #6}
FORM_F_DUMP := 0;
{--------------------------------------------------------------------------}
FORM_G_DUMP := FORM_E_DUMP + FORM_F_DUMP; {Formula #7}
{--------------------------------------------------------------------------}
If first_ticker then
begin
Writeln('Tick Name Close Toombs Action');
Writeln(' ');
end;
begin
Write(TICKER,FULLNAME,'\t',C,' ',Int(FORM_G_DUMP));
If (Int(FORM_G_DUMP)) = 2 then
Writeln(' ***BUY*** ')
else
If (Int(FORM_G_DUMP)) = -1 then
Writeln(' ***SELL*** ')
else
Writeln(' ');
end;
{-------------------------END TOOMBS.TAS SCRIPT-------------------------}