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

Re[4]: [amibroker] Herman's custom buttons and refresh



PureBytes Links

Trading Reference Links

Title: Re[4]: [amibroker] Herman's custom buttons and refresh

Thanks,


I agree that things could become very complicated.


Herman



Sunday, August 24, 2008, 6:26:25 AM, you wrote:


>

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

----- Original Message ----- 

From: Herman 

To: Fred Tonetti 

Sent: Sunday, August 24, 2008 11:02 AM

Subject: Re[2]: [amibroker] Herman's custom buttons and refresh


Thanks... the trouble is that the Backtester will do other unknown (to me) things.


I don't see this very clearly ... buy sometimes I miss a way to execute AFL in isolation, for example to process data without causing any spin-off actions like chart refresh, interpretation window, Backtest, Tooltip,  be subject to length of data arrays, or whatever. AFL has become a real programming language, not just something to drive charts. Sometimes the dedication to driving charts is a handicap.


Wrt RefreshAll, what would be nice is a Refresh( Scope, Event ); where we can specify the scope of the Refresh to specific areas of AmiBroker, like Interpretation, current formula, Indicator pane, current window, ticker tree, all, ...

And specify when we want the refresh done, for example disable quote refreshes in Real-time Applications and use timed refresh only.


Such features would give us better control and allow us to save execution time in many cases. It would also reduce AFL dependence on DLLs, COM stuff, etc.


herman



Sunday, August 24, 2008, 1:20:01 AM, you wrote:


>

I think Backtest will perform the same functions you want out of RefreshAll and if Apply To is set to the current symbol in most cases it will run faster than RefreshAll

 

Try it …

 


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

Sent: Saturday, August 23, 2008 8:12 PM

To: murthysuresh

Subject: Re: [amibroker] Herman's custom buttons and refresh

 

It is better not to use the RefreshAll() at all, it is slow. However, if I remember correctly, there were some conditions that required the entire formula (including button-code before the clicked button) to be re-executed when a button was clicked. Else you are looking at a button panel that is only half refreshed after the button clicked. It could take, in your case another second, to refresh all buttons. For example, this would show up if you had many button columns and were collapsing the panel. The panel would collapse in two steps. Looks weird but no big problem.

 

I think Tomasz was going to look into a current-formula refresh only, which would be very fast.

 

Best thing is just to try it out, one second refreshes may be OK for you. 

 

herman

 

Saturday, August 23, 2008, 7:50:40 PM, you wrote:

 

> Herman. your code for the custom buttons has a builtin refresh command.

> my ab is set to refresh at 1 sec interval using prefreences. is there 

> any reason why i should be using the RequestTimedRefresh(1);

 

> does it mean my ab will refresh twice per second?

 

 

 

> ------------------------------------

 

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

> Yahoo! Groups Links

 

> <*> To visit your group on the web, go to:

>     http://groups.yahoo.com/group/amibroker/

 

> <*> Your email settings:

>     Individual Email | Traditional

 

> <*> To change settings online go to:

>     http://groups.yahoo.com/group/amibroker/join

>     (Yahoo! ID required)

 

> <*> To change settings via email:

>     mailto:amibroker-digest@xxxxxxxxxps.com 

>     mailto:amibroker-fullfeatured@yahoogroups.com

 

> <*> To unsubscribe from this group, send an email to:

>     amibroker-unsubscribe@xxxxxxxxxxxxcom

 

> <*> Your use of Yahoo! Groups is subject to:

>     http://docs.yahoo.com/info/terms/

 

 




I am using the free version of SPAMfighter for private users.

It has removed 532 spam emails to date.

Paying users do not have this message in their emails.

Try SPAMfighter for free now!

 

 

__._,_.___

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

__,_._,___