home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload
/
ShartewareOverload.cdr
/
finance
/
tas206.zip
/
DM.TAS
< prev
next >
Wrap
Text File
|
1991-02-14
|
871b
|
26 lines
#output_file 'dm.lst'
{ DM.TAS
Wilder's Directional Movement Trading Example
This script will indicate
a BUY signal
if the +DI(14) crosses above -DI(14) and ADXR > 25
a SELL signal
if the -DI(14) crosses above +DI(14) and ADXR > 25
}
pdi_array : array; { declare the +DI (Positive Directional Movement array}
mdi_array : array; { declare the -DI (Negative Directional Movement array}
pdi_array := pdi(14); { calculate +DI}
mdi_array := mdi(14); { calculate -DI}
adxr_14 := adxr(14);
if (adxr_14 > 25) then { AVG DX Rate of Change > 25 }
begin
if (over(pdi_array,mdi_array) = 0) then
writeln(TICKER,' +DI crossed upward over -DI *** BUY SIGNAL ***')
else
if (over(mdi_array,pdi_array) = 0) then
writeln(TICKER,' +DI crossed downward over -DI *** SELL SIGNAL ***');
end;