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

Re: calculation of price/frequency distributions



PureBytes Links

Trading Reference Links

Keep in mind that the option to update on each tick is just that - an
option - you don't  HAVE  to update on every tick if you do not want to.  If
the variables were well-behaved (i.e., under the programmer's control), then
the programmer could easily duplicate, if he wished to do so, the behavior
of the existing kluge.  The opposite, however, is  NOT  true.  There is no
way to capture a transient value occurring briefly intra-bar (other than to
write it to a file - a very poor substitute).

As to your question re. "value1[1]", the reference is to a bar value.
Perhaps I did not make myself clear - I'm not saying that all the
intermediate function values (for each tick) should be retained by TS, only
that the value of a  VARIABLE  should change only when a change is specified
by the programmer.  The final function value for a bar is just that - the
final value, not an array of tick-based values.  BUT THE PROGRAMMER SHOULD
BE ABLE TO CONTROL WHAT THAT FINAL VALUE IS.  (Pardon the "shouting", but
emphasis of this point is important.)

Consider a function of several independent (they vary completely
independently) inputs where you want to capture the instantaneous high and
low OF THE FUNCTION occurring during the bar interval.  You can't.  If I
recall correctly, TS figures the final function value based upon the final
values of the several inputs, a value which may be nowhere NEAR what you
want.

Regards,
Carroll Slemaker


----- Original Message -----
From: Howard Jackson <hrjf4@xxxxxxxxx>
To: Carroll Slemaker <cslemaker1@xxxxxxxx>; Tim McCaughey <TimM@xxxxxxxxxx>;
<omega-list@xxxxxxxxxx>
Sent: Tuesday, July 27, 1999 12:49 PM
Subject: Re: calculation of price/frequency distributions


> So if we were speaking about applying an study in a
> daily bar (it really applies to all bars) you want
> variables to keep the values they have on every tick?
> What would happen if I wrote
>    value1[1]
> Would this be one tick or one bar? would we keep
> results of all functions for every tick as well? how
> are you going to calculate a 10 day average using the
> function
>    average(value1, 10)
> If the value1[1] is one tick an not one day?