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

Re[2]: [amibroker] When does AmiBroker execute RefreshAll?



PureBytes Links

Trading Reference Links

Title: Re[2]: [amibroker] When does AmiBroker execute RefreshAll?

Thanks Jerry,


I don't think many users use RefreshAll() any more, it has become a bit of an excuse to blame problems on it. I myself use it very sparingly and not at all in my current application. 


My current problem is NOT how to get a refresh but how to PREVENT them. 


imo, More user control (enable/disable/scope) of RefreshAll() is desirable. To have the system go unresponsive for several seconds at a time, at the most inopportune times and frequencies, can really complicate things. Especially when you have to call OLE procedures hundreds of times. 


Being a non-professional programmer I find OLE stuff a real pain to work with. There is simply NO efficient way to pass variables and control between OLE and AFL. The average user shouldn't have to learn OLE/JS/VB to simple call a Backtest or Exploration. AFL is has become very powerful and I can do virtually everything that required VB or JS in the past, simple using AFL. All I'd like to see are a few simple afl functions like:


RunBacktester( ProgramName, FromDate, ToDate, ...)

RunExploration( ... )

RunScan( ... )


This would blow the lid of AFL limitation and allow users to work exclusively in AFL. Automating procedures would be a piece of cake. But somehow I don't think I will see this in my AB lifetime ;-) old habits are hard to break.


Sorry for the OT comments Jerry :-) 


best regards,

herman



Saturday, November 15, 2008, 11:47:50 AM, you wrote:


>

Hello Herman,

Searched my saved messages and found below:

From 8/24/08;

The one and only correct way to force refresh of given formula from the very same formula

is to use RequestTimedRefresh(). It refreshes ONE and only formula. 

 

Using RefreshAll is huge overkill. It refreshes EVERYHING, including all ticker lists, tree displays, dialogs, commentaries, interpretations, etc.

 

There won't be any "Scope" added to RefreshAll because it will be, like RefreshAll already is, abused. RefreshAll already

has protection against brining the program down by implied infinite loops generated by people calling it from indicators unconditionally.

I can't stop people from shooting themselves in the foot, but I can at least disourage using RefreshAll as much as I can.


Best regards,

Tomasz Janeczko

amibroker.com

 

 

Jerry Gress

Stockton, Ca.

 


From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of Herman

Sent: Saturday, November 15, 2008 4:24 AM

To: AmiBroker User Group

Subject: Re: [amibroker] When does AmiBroker execute RefreshAll?

 

I found one reference by Tomasz on the feedback site: 

 

Symbol list refresh is also triggered automatically at the end of exploration if you use

the following functions:

CategorySetName

CategoryAddSymbol

CategoryRemoveSymbol 

After using ATC in AA?

 

Can anyone complete the list?

 

With my DB (lots of categories and tickers) each RefreshAll executed by AB (I do not call any RefreshAll() myself!) takes several seconds and interferes with my OLE synchronization protocol. 

 

I want to prevent these RefreshAlls and am considering substituting all AB WL functions with custom functions using Static and Persistent variables, so that I can control when the AB RefreshAll takes place. To do this I need to know which AB operations trigger the refreshes. Anyone been this road? 

 

thanks,

herman

 

 

Saturday, November 15, 2008, 6:59:31 AM, you wrote:

 

> 

Sorry, i know the answer was posted by Tomasz but i can't find it.

 

I need to know 'ALL' conditions that trigger an AmiBroker RefreshAll.

 

Would anyone know where this was posted?

 

Many thanks,

herman

 

 

__._,_.___

**** IMPORTANT ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

*********************
TO GET TECHNICAL SUPPORT from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
*********************

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

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

*********************************




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___