[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

GEN: Simple system for trading model MOVA/Z



PureBytes Links

Trading Reference Links

<x-html><HTML>
<TT>Members,</TT><TT></TT>

<P><TT>Quite often there have been questions as to "what</TT>
<BR><TT>to do" with an indicator.</TT><TT></TT>

<P><TT>I am a great believer in the KISS principle.&nbsp; For</TT>
<BR><TT>this reason I am including below a SYSTEM which</TT>
<BR><TT>will demonstrate a reasonable capability of profit</TT>
<BR><TT>using only a Moving Average (delayed if desired) and</TT>
<BR><TT>the direction of the last two closes OR a Z score</TT>
<BR><TT>computation using positive numbers to go long and</TT>
<BR><TT>negative numbers to go short.</TT><TT></TT>

<P><TT>THERE IS NO REVERSAL IN THIS SYSTEM.</TT><TT></TT>

<P><TT>An exit must be taken from a trade before another</TT>
<BR><TT>trade can be entered.&nbsp; The exit can be by virture</TT>
<BR><TT>of the lapse of some number of days, the reaching</TT>
<BR><TT>of some profit objective, falling through some loss</TT>
<BR><TT>criteria, or pulling back a certain amount from the</TT>
<BR><TT>highest high or lowest low of a trade.</TT><TT></TT>

<P><TT>USE THIS SYSTEM AS A TRAINING EXERCISE TO SEE JUST</TT>
<BR><TT>HOW THESE EXITS INFLUNCE THE PROFITABILITY OF A</TT>
<BR><TT>TRADE.</TT><TT></TT>

<P><TT>To start with -- using the OEX cash from 2/11/88 to</TT>
<BR><TT>now --&nbsp; set the following parameters</TT>
<BR><TT></TT>&nbsp;<TT></TT>

<P><TT>MODE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2</TT>
<BR><TT>LENGTH&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 10&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
10</TT>
<BR><TT>OFFSET&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
.5</TT>
<BR><TT>EXITDAYS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
0</TT>
<BR><TT>EXITPROF&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 4.5&nbsp;&nbsp;&nbsp;&nbsp;
4.25</TT>
<BR><TT>DOLENTST&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
3</TT>
<BR><TT>PULLBMUL&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
3</TT>
<BR><TT>MOONDAYS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 11&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
9</TT>
<BR><TT>BEGDATE&nbsp;&nbsp;&nbsp; 650101&nbsp;&nbsp; 650101</TT>
<BR><TT>ENDDATE&nbsp;&nbsp;&nbsp; 991231&nbsp;&nbsp; 991231</TT>
<BR><TT></TT>&nbsp;<TT></TT>

<P><TT>This really is a simple system and can provide</TT>
<BR><TT>a model for more exotic systems.</TT><TT></TT>

<P><TT>I hope you will try this and let all of us know</TT>
<BR><TT>what success you have had in your simulations.</TT>
<BR><TT></TT>&nbsp;<TT></TT>

<P><TT>Clyde</TT><TT></TT>

<P><TT>PS:&nbsp; THERE is an INDICATOR called EQUITY which</TT>
<BR><TT>&nbsp;&nbsp;&nbsp;&nbsp; will show profitable zones in green, loss</TT>
<BR><TT>&nbsp;&nbsp;&nbsp;&nbsp; zones in red and flat zones in grey.</TT><TT></TT>

<P><TT>&nbsp;&nbsp;&nbsp;&nbsp; I like to see this on systems.</TT>
<BR><TT></TT>&nbsp;
<BR><TT></TT>&nbsp;<TT></TT>

<P><TT>SYSTEM CODE STARTS BELOW -- SAME AS ATTACHED&nbsp; .ELA</TT>
<BR><TT></TT>&nbsp;
<BR><TT></TT>&nbsp;
<BR><TT></TT>&nbsp;
<BR><TT></TT>&nbsp;<TT></TT>

<P><TT>{</TT>
<BR><TT>&nbsp;System MovingAvg DisplacedP</TT><TT></TT>

<P><TT>&nbsp;Written by:</TT>
<BR><TT>&nbsp;Clyde Lee (FuturesMagic) Copyright (c) 1997</TT>
<BR><TT>&nbsp;clydelee@xxxxxxx</TT><TT></TT>

<P><TT>&nbsp;MODE 1:</TT>
<BR><TT>&nbsp;Go LONG on next bar when closing price exceeds the MOVA value
and</TT>
<BR><TT>&nbsp;last two closing prices are greater than the respective previous</TT>
<BR><TT>&nbsp;closing prices.</TT><TT></TT>

<P><TT>&nbsp;Go SHORT when closing price is less than the MOVA value and
the last</TT>
<BR><TT>&nbsp;two closing prices are less than the respective previous
closing prices.</TT><TT></TT>

<P><TT>&nbsp;MODE 2:</TT>
<BR><TT>&nbsp;Go LONG&nbsp; on next bar when ZScore (Variable11) is above
zero.</TT>
<BR><TT>&nbsp;Go SHORT on next bar when ZScore (Variable11) is below zero.</TT>
<BR><TT>&nbsp;</TT><TT></TT>

<P><TT>&nbsp;There is NO reversal of trades.&nbsp; Only when the system
is in a 'FLAT'</TT>
<BR><TT>&nbsp;position will an entry occur.</TT><TT></TT>

<P><TT>&nbsp;The MOVA value can be the MOVA value at some specified offset
prior</TT>
<BR><TT>&nbsp;to current time.&nbsp; If this offset is specified as a value
&lt; 1 then the</TT>
<BR><TT>&nbsp;applied value is a multiple of the period selected for the
MOVA length.</TT>
<BR><TT>&nbsp;If the offset value is greater than one then the offset is
in bars.</TT><TT></TT>

<P><TT>&nbsp;Whether an entry is taken or not can be a function of whether
the</TT>
<BR><TT>&nbsp;moon is in the new or full phase and for how many days in
the</TT>
<BR><TT>&nbsp;selected phase a trade can be entered.&nbsp; THE CHOICE OF
MOON HAS</TT>
<BR><TT>&nbsp;NO EFFECT ON WHEN TO EXIT A TRADE.&nbsp; The moon parameter
is specified</TT>
<BR><TT>&nbsp;as&nbsp; xxYY&nbsp; where xx=beginning day of phase&nbsp;
and&nbsp; YY=last day of phase.</TT><TT></TT>

<P><TT>&nbsp;If the value of this parameter is negative then long entries
are taken</TT>
<BR><TT>&nbsp;during the full moon phase and short entries taken during
the new moon</TT>
<BR><TT>&nbsp;phase.&nbsp; For positive numbers long trades are taken during
the days</TT>
<BR><TT>&nbsp;which follow the new moon.</TT><TT></TT>

<P><TT>&nbsp;The system can be setup to execute trades only between certain
dates</TT>
<BR><TT>&nbsp;and can be forced to close all positions on the last bar
of the chart.</TT><TT></TT>

<P><TT>&nbsp;Exit choices (combinations allowed) are:</TT>
<BR><TT>&nbsp; 1. Exit on close when N days have elapsed regardless of
profit/loss.</TT>
<BR><TT>&nbsp; 2. Exit at a price which will yield a certain profit.&nbsp;
The profit</TT>
<BR><TT>&nbsp;&nbsp; can be specified in DOLLARS or some multiple of the
ATR(14).</TT>
<BR><TT>&nbsp; 3. Money Management stop some number of DOLLARS or some
multiple</TT>
<BR><TT>&nbsp;&nbsp; of the ATR(14) away from the entry price for a trade.</TT>
<BR><TT>&nbsp; 4. Exit at a price which is some amount below the highest
high</TT>
<BR><TT>&nbsp;&nbsp; for a LONG trade or above the lowest low for a short
trade</TT>
<BR><TT>&nbsp;&nbsp; that was achieved in the trade.&nbsp; The amount above/below
is</TT>
<BR><TT>&nbsp;&nbsp; a function of the amount specified for the money management</TT>
<BR><TT>&nbsp;&nbsp; stop.&nbsp; The amount below/above is specified as
a multiple of</TT>
<BR><TT>&nbsp;&nbsp; the MM stop amount.</TT>
<BR><TT></TT>&nbsp;<TT></TT>

<P><TT>&nbsp;The purpose of this system and it's description is ONLY FOR</TT>
<BR><TT>&nbsp;EDUCATIONAL PURPOSE AND ANY APPARENT RECOMMENDATIONS WHICH
DERIVE</TT>
<BR><TT>&nbsp;FROM EXECUTION OF THIS SYSTEM UNDER OMEGA SUPERCHARTS(R)
OR</TT>
<BR><TT>&nbsp;TRADESTATION(R) ARE STRICTLY TO SHOW WHAT THE INCLUDED ALGORITHMS</TT>
<BR><TT>&nbsp;WOULD INDICATE UNDER CERTAIN MARKET CONDITIONS.</TT>
<BR><TT></TT>&nbsp;<TT></TT>

<P><TT>$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$</TT>
<BR><TT>}</TT><TT></TT>

<P><TT>inputs:&nbsp;&nbsp;&nbsp;&nbsp; Mode(1),&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
{mode of trading 1=MOVA&nbsp; 2=ZScore}</TT>
<BR><TT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Length(10),&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {Length for MOVA/ZScore
to compute}</TT>
<BR><TT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
OFFSET(.5),&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {Delay>=1 or Multiplier&lt;1
of Length for Delay}</TT>
<BR><TT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
ExitDays(0),&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {Exit after n days in trade
}</TT>
<BR><TT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
ExitProf(4.5),&nbsp;&nbsp;&nbsp; {Exit if Profit>ExitProf&nbsp; &lt;50=n*ATR(14)}</TT>
<BR><TT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
DolEntSt(2),&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {Money Management stop days
after Day 1}</TT>
<BR><TT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
{>50 = $$$&nbsp;&nbsp; &lt;50 = N*ATR(14)}</TT>
<BR><TT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
PullBMul(3),&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {Multiplier of DolEntSt for
Pullback exit}</TT>
<BR><TT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
MoonDays(0111),&nbsp;&nbsp; {Number of days in each moon phase to buy/sell}</TT>
<BR><TT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
{xxYY&nbsp;&nbsp; xx=begin date&nbsp;&nbsp;&nbsp;&nbsp; YY=end date}</TT>
<BR><TT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
{+=BUY IN NEW MOON PHASE&nbsp;&nbsp; -=BUY IN FULL PHASE}</TT>
<BR><TT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
BegDate(650101),&nbsp; {FIRST DATE TO USE IN SIMULATION}</TT>
<BR><TT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
EndDate(991231);&nbsp; {LAST DATE TO USE IN SIMULATION}</TT>
<BR><TT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
{If last date = 999999&nbsp; - close on last date}</TT><TT></TT>

<P><TT>Vars:&nbsp;&nbsp; MaxProf(0),BegMoon(0),EndMoon(0),</TT>
<BR><TT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; HiNTra(H), LoNTra(L),
Init(0);</TT><TT></TT>

<P><TT>IF Init=0 then begin</TT>
<BR><TT>&nbsp;&nbsp; BegMoon = IntPortion(AbsValue(MoonDays)/100);</TT>
<BR><TT>&nbsp;&nbsp; EndMoon = IntPortion(AbsValue(MoonDays)-BegMoon*100);</TT>
<BR><TT>&nbsp;Init=1;</TT>
<BR><TT>End;</TT>
<BR><TT></TT>&nbsp;<TT></TT>

<P><TT>If (LastBarOnChart=True and EndDate=999999) or&nbsp; Date>=EndDate
then&nbsp; begin</TT><TT></TT>

<P><TT>&nbsp;If marketposition =&nbsp; 1 then exitlong ;</TT>
<BR><TT>&nbsp;If marketposition = -1 then exitshort;</TT><TT></TT>

<P><TT>End</TT>
<BR><TT>Else If Date >= BegDate then begin</TT>
<BR><TT>&nbsp;If Mode=1 then begin</TT>
<BR><TT>&nbsp; {Value11 = LEEXHL2CLO(LENGTH);}</TT>
<BR><TT>&nbsp; If Offset &lt; 1&nbsp; then</TT>
<BR><TT>&nbsp;&nbsp; Value11 = Average(C,LENGTH)[LENGTH*OFFSET]</TT>
<BR><TT>&nbsp; Else</TT>
<BR><TT>&nbsp;&nbsp; Value11 = Average(C,LENGTH)[OFFSET];</TT>
<BR><TT>&nbsp;End</TT>
<BR><TT>&nbsp;Else If mode=2 then begin</TT>
<BR><TT>&nbsp; Value11 = log(C) - log(C[1]);</TT>
<BR><TT>&nbsp; Value11 = SquareRoot(Length)*(Value11 - Average(Value11,Length))</TT>
<BR><TT>&nbsp;&nbsp;&nbsp; /(StdDev(Value11,Length)+.001);</TT>
<BR><TT>&nbsp;End;</TT>
<BR><TT></TT>&nbsp;<TT></TT>

<P><TT>&nbsp;If MarketPosition=0 then begin</TT><TT></TT>

<P><TT>&nbsp; If mode = 1 then begin</TT>
<BR><TT>&nbsp;&nbsp; Condition1= c>c[1] and c[1]>c[2] and C>Value11;</TT>
<BR><TT>&nbsp;&nbsp; Condition2= c&lt;c[1] and c[1]&lt;c[2] and C&lt;Value11;</TT>
<BR><TT>&nbsp; End</TT>
<BR><TT>&nbsp; Else begin</TT>
<BR><TT>&nbsp;&nbsp; Condition1= Value11>0;</TT>
<BR><TT>&nbsp;&nbsp; Condition2= Value11&lt;0;</TT>
<BR><TT>&nbsp; End;</TT><TT></TT>

<P><TT>&nbsp; Value1=MoonPhas;</TT>
<BR><TT>&nbsp; If MoonDays>0 then begin</TT>
<BR><TT>&nbsp;&nbsp; If Value1>EndMoon&nbsp;&nbsp;&nbsp; or Value1&lt;BegMoon&nbsp;&nbsp;&nbsp;
then Condition1=false;</TT>
<BR><TT>&nbsp;&nbsp; If Value1>EndMoon+14 or Value1&lt;BegMoon+15 then
Condition2=false;</TT>
<BR><TT>&nbsp; End;</TT>
<BR><TT>&nbsp; If MoonDays&lt;0 then begin</TT>
<BR><TT>&nbsp;&nbsp; If Value1>EndMoon&nbsp;&nbsp;&nbsp; or Value1&lt;BegMoon&nbsp;&nbsp;&nbsp;
then Condition2=false;</TT>
<BR><TT>&nbsp;&nbsp; If Value1>EndMoon+14 or Value1&lt;BegMoon+15 then
Condition1=false;</TT>
<BR><TT>&nbsp; End;</TT><TT></TT>

<P><TT>&nbsp; If Condition1 then&nbsp; Buy&nbsp; ("lRSIen") at c limit;</TT>
<BR><TT>&nbsp; If Condition2 then&nbsp; Sell ("sRSIen") at c limit;</TT><TT></TT>

<P><TT>&nbsp; HiNTra=H;LoNTra=L;</TT><TT></TT>

<P><TT>&nbsp;End;</TT>
<BR><TT></TT>&nbsp;<TT></TT>

<P><TT>&nbsp;If EntryPrice>0 then begin</TT>
<BR><TT>&nbsp;</TT>
<BR><TT>&nbsp; If mode=1 then begin</TT>
<BR><TT>&nbsp;&nbsp; If c&lt;Value1 then ExitLong&nbsp; ("mvxl") at c limit;</TT>
<BR><TT>&nbsp;&nbsp; If c>Value1 then ExitShort ("mvxs") at c limit;</TT>
<BR><TT>&nbsp; End;</TT><TT></TT>

<P><TT>&nbsp; If ExitDays>0 then begin</TT>
<BR><TT>&nbsp;&nbsp; If BarsSinceEntry>=ExitDays then begin;</TT>
<BR><TT>&nbsp;&nbsp;&nbsp; ExitLong&nbsp; ("lxtim") at close;</TT>
<BR><TT>&nbsp;&nbsp;&nbsp; ExitShort ("sxtim") at close;</TT>
<BR><TT>&nbsp;&nbsp; End;</TT>
<BR><TT>&nbsp; End;</TT><TT></TT>

<P><TT>&nbsp; If ExitProf>0 then begin</TT>
<BR><TT>&nbsp;&nbsp; If ExitProf&lt;50 then&nbsp;&nbsp; MaxProf=ExitProf*AvgTrueRange(14)</TT>
<BR><TT>&nbsp;&nbsp; else&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MaxProf=ExitProf/BigPointValue;</TT>
<BR><TT>&nbsp;&nbsp; ExitLong&nbsp; ("lxmxp") at EntryPrice + MaxProf limit;</TT>
<BR><TT>&nbsp;&nbsp; ExitShort ("sxmxp") at EntryPrice - MaxProf limit;</TT>
<BR><TT>&nbsp; End;</TT><TT></TT>

<P><TT>&nbsp; If DolEntSt&lt;>0 then begin</TT>
<BR><TT>&nbsp;&nbsp; If DolEntSt>=50 then&nbsp; Value1 = DolEntSt / BigPointValue</TT>
<BR><TT>&nbsp;&nbsp; else&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Value1 =
DolEntSt * AvgTrueRange(14);</TT>
<BR><TT>&nbsp;&nbsp; If MarketPosition>0 then begin</TT>
<BR><TT>&nbsp;&nbsp;&nbsp; Value3 = EntryPrice - Value1;</TT>
<BR><TT>&nbsp;&nbsp;&nbsp; If H>HiNTra then HiNTra=H;</TT>
<BR><TT>&nbsp;&nbsp;&nbsp; Value4 = HiNTra - Value1 * PullBMul;</TT>
<BR><TT>&nbsp;&nbsp;&nbsp; If Value3>Value4 then&nbsp; ExitLong&nbsp; ("lxex")
at Value3 stop</TT>
<BR><TT>&nbsp;&nbsp;&nbsp; else&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ExitLong&nbsp;
("tplx") at Value4 stop ;</TT>
<BR><TT>&nbsp;&nbsp; End</TT>
<BR><TT>&nbsp;&nbsp; Else begin</TT>
<BR><TT>&nbsp;&nbsp;&nbsp; Value5 = EntryPrice + Value1;</TT>
<BR><TT>&nbsp;&nbsp;&nbsp; If L&lt;LoNTra then LoNTra=L;</TT>
<BR><TT>&nbsp;&nbsp;&nbsp; Value6 = LoNTra + Value1 * PullBMul;</TT>
<BR><TT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If Value5&lt;Value6 then ExitShort
("sxex") at Value5 stop</TT>
<BR><TT>&nbsp;&nbsp;&nbsp; else&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ExitShort
("tpsx") at Value6 stop ;</TT>
<BR><TT>&nbsp;&nbsp; End;</TT>
<BR><TT>&nbsp; End;</TT>
<BR><TT>&nbsp;</TT>
<BR><TT>&nbsp;End;</TT><TT></TT>

<P><TT>End;</TT>
<BR><TT></TT>&nbsp;
<BR><TT></TT>&nbsp;<TT></TT>

<P><TT>START OF CODE FOR&nbsp; EQUITY&nbsp;&nbsp; INDICATOR</TT><TT></TT>

<P><TT>{ *******************************************************************</TT>
<BR><TT>&nbsp;</TT>
<BR><TT>&nbsp;Study&nbsp; : Equity</TT>
<BR><TT>&nbsp;</TT>
<BR><TT>&nbsp;Last Edit : 10/19/96</TT><TT></TT>

<P><TT>&nbsp;Provided By : Clyde Lee (c) Copyright 1996</TT><TT></TT>

<P><TT>********************************************************************}</TT><TT></TT>

<P><TT>If CurrentBar>2 then begin</TT>
<BR><TT>&nbsp;If I_OpenEquity> I_ClosedEquity then begin</TT>
<BR><TT>&nbsp; Plot1(I_OpenEquity, "OpenEq");</TT>
<BR><TT>&nbsp;End</TT>
<BR><TT>&nbsp;Else If I_OpenEquity&lt; I_ClosedEquity then begin</TT>
<BR><TT>&nbsp; Plot2(I_OpenEquity, "OpenEq");</TT>
<BR><TT>&nbsp;End</TT>
<BR><TT>&nbsp;Else begin</TT>
<BR><TT>&nbsp; {If Value1=I_ClosedEquity then} Plot3(I_ClosedEquity, "same");</TT>
<BR><TT>&nbsp;End;</TT>
<BR><TT>End;</TT>
<BR><TT>Value1=I_OpenEquity;</TT>
<BR><TT></TT>&nbsp;</HTML>
</x-html>
Attachment Converted: "c:\eudora\attach\vcard155.vcf"