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

Re[2]: Computer language



PureBytes Links

Trading Reference Links

On Monday, December 11, 2000, 2:43:03 PM, DH wrote:

D> That was my biggest problem with the sample VB indicators included
D> with Traderware.

Perhaps these were not written to save time - see below.

D> Every time it calculates a new bar realtime, it
D> starts over with the entire data series and plots the whole thing
D> again. Kinda like doing this in EL (pseudocode)

D>   if lastbaronchart then begin
D>     for counter = barstoplot downto 0 begin
D>       {do the calcs}
D>       plot1[counter](mycalc,"");
D>     end;
D>   end;

D> That's a HUGE drain on computer power. If you had many indicators
D> plotting realtime on many bars, it would bring the fastest computer to
D> its knees. Fine for research but no good realtime.

Why not try:

   if lastbaronchart then begin
     [calculate this point only]
     [store at the end of an array]
     [plot the array]
   end;

Quite easy to do in VB, and fast. This is essentially what EL does
anyway, does it not?

ztrader