From: Tomasz Janeczko
[mailto:amibroker@xxxxxx] 
Sent: Thursday, April 14, 2005
5:05 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: using LastValue()
function (causes all bars to be required)!!! Re: [amibroker] IB RT + Foreign()
+ 100% CPU Usage -- price formula
Importance: High
 
Volscale*LastValue(Highest(V);
 
Combination of LastValue and Highest makes
it necessary to use all bars 
to calculate last Highest value from all
data.
 
 
You should avoid such
statements AND replace :
 
Plot(AvgVol,"",colorGold,styleNoTitle|ParamStyle("Style",
   styleHistogram|styleOwnScale|styleThick|styleNoLabel,maskHistogram),
   0,Volscale*LastValue(Highest(V)));
 
by:
 
Plot(AvgVol,"",colorGold,styleNoTitle|ParamStyle("Style", 
   styleHistogram|styleOwnScale|styleThick|styleNoLabel,maskHistogram),VolScale);