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

Re: Oddball system variation



PureBytes Links

Trading Reference Links

Goes without saying the code could be used for rate of change trading on
different data than advancing issues, i.e. price, or volume, or whatever
correlates and for combining rates of change of multiple data in a logical
"OR" or "AND".   Using a one day rate of change with a specified sample
interval is kind of neat.  Using the smaller time frame bar facilitates
additional shorter time stuff like stops for those with shallow pockets that
don't want the inherent risk of a one hour period.  For example, the long
and short entries could by from the Oddball advancing issues code, but your
exitlong and exitshort could be from price.  Or you could use the Oddball
code for the setup and then use a price bar pattern for the actual entries
and exits.  This is really novel code Mark supplied.

bobr


----- Original Message -----
From: "Charles Johnson" <cmjohnsonxx@xxxxxxxxx>
To: "BobR" <bobrabcd@xxxxxxxxxxxxx>; "Omega-List" <omega-list@xxxxxxxxxx>
Sent: Monday, October 22, 2001 9:53 AM
Subject: RE: Oddball system variation


> Interesting.
>
> -----Original Message-----
> From: BobR [mailto:bobrabcd@xxxxxxxxxxxxx]
> Sent: Monday, October 22, 2001 11:00 AM
> To: Charles Johnson; Omega-List
> Subject: Re: Oddball system variation
>
>
> Suggestion, make a few small changes in the system code to create the
> OddBall Indicator so you can see when a trade is approaching.   {Coment}
out
> the buy/sell lines and add four plot lines.  Set up a chart with the snp
in
> data1 and NYA advancing issues in data2.  Use a small time bar such as 3
or
> 5 minutes.  The indicator will have a steplike appearance covering each
> sampling period.
>
> bobr
>
> {Oddball Indicator}
> {Variation of oddball system by Mark Brown.
> Indifferent to bar length if <= interval, and to extraneous night session
> data.
> First and last are start and end times.  Interval is time in minutes
between
> pollings.}
>
> Inputs: bz(3), sz(1), first(1000), interval(60), last(1600);
> var: rai(0), action(0);
> array: obtime[1000](0), obvalue[1000](0);
>
> obtime[1] = timetominutes(first);
> value1 = 1;
> while obtime[value1] < timetominutes(last) begin
> value1 = value1 + 1;
> obtime[value1] = obtime[value1-1] + interval;
> end;
>
> action = 0;
> for value2 = 1 to value1 begin
> if timetominutes(time) = obtime[value2] then begin
> if obvalue[value2] > 0 then begin
> rai = ((close of data2) / obvalue[value2] - 1) * 100;
> If rai > bz Then action = 1;
> If rai < sz Then action = -1;
> end;
> obvalue[value2] = close of data2;
> end;
> end;
> {
>  if action = 1 then buy;
>  if action = -1 then sell;
> }
>
> Plot1(rai,"rai");
> Plot2(bz,"bz");
> Plot3(0,"0");
> Plot4(sz,"sz");
>
> >
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>