home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1993 #2
/
Image.iso
/
finance
/
tas515dm.zip
/
EXAMPLES.ZIP
/
EASEMOV2.TAS
< prev
next >
Wrap
Text File
|
1992-05-25
|
2KB
|
64 lines
{This indicator is an oscillator designed to reveal the direction that
a stock or commodity is moving with the least amount of resistance.
First, calculate the midpoint movement (MPM):
MPM = TH+TL - YH+YL
----- -----
2 2
Where TH = Today's High
YH = Yesterday's High
TL = Today's Low
YL = Yesterday's Low
EMV = Midpoint Move
-------------
Box Ratio
The ease of movement value is:
EMV = 0.05
---------------- = 0.64
(5.5 / 7)}
#max_quotes 20
#output_file 'EASE.LST N'
if first_ticker then
begin
writeln('Stock analysis based on Equivolume averaged on a 5 EMA overided by a 3 ROC');
writeln(DATE, ' Good look and good trades!!!! Haim
');
writeln('Ticker',' Close',' Chng',' Least Resist.',' Ind. Strenght',' Ind. Change');
end;
end;
emva : array;
emvama : array;
rocemv : array;
delta : array;
chng : array;
x = 1;
:loop
if x < 20 then
gosub ease else
begin
emvama = mov(emva,5,'e');
rocemv=(ROC(emvama,3,'$'))/10;
if rocemv < 0.1 then
ind =' weak or revers';
if rocemv > 0.1 then
ind = ' strength';
if emvama > 0 then
ease = ' is UP ';
if emvama < 0 then
ease = ' is DOWN';
delta = emvama[0]-emvama[-1];
chng = ((C[0] - C[-1])*8)
{chg = chng;}
chg = int(chng);
writeln(ticker,C,chg,('/8'),emvama,ease,rocemv, ' ind.' ,ind,' ',delta,);
end;
return;
:ease
if v = 0 then return;
mpm = ((h[x]+l[x])/2)-((h[x-1]+l[x-1])/2);
box_ratio_price = (h[x]-l[x])/8;
if v[x] > 1000 then box_ratio_vol = v[x]/1000 else box_ratio_vol = v[x]/100;
emva[x] = 500*(mpm/(box_ratio_vol/box_ratio_price));
x = x+1;
goto loop;
return