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

RE: Re: [amibroker] IB RT + Foreign() + 100% CPU Usage -- price formula



PureBytes Links

Trading Reference Links

Title: Normal.dot Template

Hi,

 

How about this statement, does it still require loading all bars?

 

MaxV = LastValue(HighestSince(Status("barvisible") AND Ref(Status("barvisible"),-1)==0,Volume));

 

 


thanks,
Joseph Biran
____________________________________________

 


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

 

Hello,

 

Yes it does because of

statements like this:

 

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);

 

Best regards,
Tomasz Janeczko
amibroker.com



Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.html





Yahoo! Groups Links