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

Re: More Possible Errors in OddBall



PureBytes Links

Trading Reference Links

At 1:08 AM +0100 3/27/02, frode aschim wrote:

>Bob, I have written a few messages before as well regarding this
>topic. Although I have never traded with OddBall, I have several
>other systems using several datafeeds. What concerns me most is the
>internal reference (data1 / data2 etc) seems to be "out of order"
>when using functions (however, not all the time - even more strange).
>This could mean that using a function within a system with several
>datastreams you would not be certain which stream it actually read if
>you reference it as "close" instead of "close of data1", for example.

I have never seen that sort of problem. But many problems can be
caused by missing data1 or data2 bars in code that was written
assuming all bars are present. The errors can seem very mysterious at
times.

In the future all of my code that uses multiple data streams will
include the following code segment:

Vars: GoodBar(FALSE);

GoodBar = Time data1 = Time data2 and Date data1 = Date data2;

if Goodbar then begin
    <your code goes here>
end else begin
    <error actions/reporting goes here>
end;

Think about trading a stock in data1 using signals from an index in
data2. Lots of stocks are fairly illiquid and may not have trades on
every bar of data1, while the index data in data2 is likely to have
most bars present. In this condition, your code will execute on all
bars but those missing data1 will not store the values back in memory
and will not advance the CurrentBar value. No telling what is will be
doing.

Bob Fulks