home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1993 #2
/
Image.iso
/
finance
/
tas515dm.zip
/
EXAMPLES.ZIP
/
TO.TAS
< prev
next >
Wrap
Text File
|
1993-03-14
|
4KB
|
106 lines
{****** TO.TAS 3/9/93 BY LEN BENADE 301-428-3165 ****************}
{Thrust Oscillator}
{ Script based on based on the article by Stuart Meibuhr (Stocks &
Commodities, March '93) describing studies on the Thrust Oscillator (TO)
originally developed by Tushar Chande (Stocks & Commodities, August '92).
The TO is intended to be an improvement the Arms Index, which has a limited
bullish scale ranging from 0 to 1.0 but a theoretically unlimited bearish
scale from 1.0 upwards. The TO ranges from +1.0 to -1.0.
The Thrust Oscillator is defined as
TO = (ADV*UV)-(DEC*DV) / (ADV*UV)+(DEC*DV)
Where
ADV = NYSE Advancing Issues
DEC = NYSE Declining Issues
UV = NYSE Up Volume
DV = NYSE Down Volume
Meibuhr describes the use of the TO as a tool for trading the OEX,
focusing on moving averages previously studied by Richard Arms for the TRIN.
The 4, 13, and 35 day moving averages are presented as extremely short,
short, and intermediate term indicators, respectively. Crossovers of the
4 day and 13 day moving averages are offerred as signals with
trades in the direction of the 13 day average.
However, confirmation by a second indicator such as a CCI, RS, etc., on
the OEX suggested. Short-term tradable tops are signaled
when the 4 day average touches or exceeds +0.5. Coincident bottoming of the
4, 13, and 35 day averages can signal an intermediate low. A downward
crossing of the 0 line by the 35 day average can be an early warning signal.
The trend of the 35 day average and any divergence with the OEX should be
noted. Crossovers of the 21 and 55 day averages can be useful, particularly
crossovers of the 0 line by former and then the latter. Divergences of
each from the index should be noted.
On the rare occasions that the 21 day average has
dropped to -0.3, a significant market bottom has been signaled allowing a
profitable buying opportunity. Meibuhr points out that the daily Thrust
Oscillator is too "chaotic" for the most part, but notes that one day values
of -0.9 can signal bottoms and that several-day spikes to +1.0 or -1.0
can be bullish and bearish, respectively.
To remove the final screen in the script that shows
the daily Thrust Oscillator, just enclose it in curly brackets.
Each screen with TOs is shown with the index in the bottom graph for
comparison and Bollinger Bands as a second indicator. The band periods and
widths have been set to roughly correspond to the TO lengths after the
manner suggested by Bollinger in his Stocks & Commodities article from
February, 1992.
Consult this article for his recommended trading rules.}
#MAX_QUOTES 200
#index '_OEX'
#OUTPUT_FILE 'TO.LST'
F1 :array;
F2 :array;
F3 :array;
F4 : array;
F5 :array;
m1 : array;
m2 : array;
m3 : array;
m4 : array;
m5 : array;
{I have my NYSE advances, declines, up volume, and down volume in PRO format
in a
file called UVDV. You will need to adjust the script to reflect the locatio
n of
this data in your files. You will probably also have to change the ticker s
ymbol
_OEX above to OEX or whatever you use.}
if ticker = 'UVDV' then F2 = H;
if ticker = 'UVDV' then F3 = L;
if ticker = 'UVDV' then F4 = OI;
if ticker = 'UVDV' then F5 = V;
if last_ticker = 0 then return;
F1 := DIV(SUB(MUL(F2,F4),MUL(F3,F5)),ADD(MUL(F2,F4),MUL(F3,F5)));
m1 :=MOV(F1,4,'s');
m2 :=MOV(F1,13,'s');
m3 :=MOV(F1,35,'s');
m4 :=MOV(F1,21,'s');
m5 :=MOV(F1,55,'s');
OpenGraph (2,-75,0);
SizeGraph (1,2);
Graph (m4,'TO, 21 day Moving Average',m5,'TO, 55 day Moving
Average');
Graph (index,'OEX',bbandt(50,2.5),'BBand Top',
bbandb(50,2.5),'BBand Bot')
CloseGraph ();
OpenGraph (2,-75,0);
SizeGraph (1,2);
Graph (m1,'TO, 4 day Moving Average',
m2,'TO, 13 day Moving Average');
DrawLine (4,-10,0.5,0,0.5);
Graph (index,'OEX',bbandt(10,1.5),'BBand Top',
bbandb(10,1.5), 'BBand Bot');
CloseGraph ();
OpenGraph (2,-75,0);
SizeGraph (1,2);
Graph (m3,'TO, 35 day Moving Average');
Graph (index,'OEX',bbandt(20,2),'BBand Top',bbandb(20,2),
'BBand Bot');
CloseGraph ();
OpenGraph (2,-75,0);
SizeGraph (1,2);
Graph (F1,'Thrust Oscillator');
Graph (index,'OEX',bbandt(5,1),'BBand Top',bbandb(5,1),
'BBand Bot');
CloseGraph ();