Title: Re: [amibroker] Once a day calculations requiring a lot of bars
As long as AB is running you can trigger this calculation based on time, for example at 8:00 AM before the market opens. If your computers stays on you can save your variables in Static Variables, if you want to be able to turn off your computer you should save the in PersistentVariables (see UKB).
The code can be part of the chart formula but its execution is conditional on a time-trigger and happens only once a day, i.e. set a flag when the job is done to prevent repeat executions.
Best regards,
herman
Friday, December 12, 2008, 5:42:19 PM, you wrote:
> Hi All,
> I have some calculations that I need to make once a day (at the start
> of the day)... these calculations require a lot of historical bars.
> Hence I don't want to include these calculations in any chart code I'm
> using.
> I want to execute this AFL outside of chart... these calculations will
> yield around 40 discrete values.
> What's the best way of doing this...? As a scan? Exploration? Or
> anything else?
> How would I then pass those 40 discrete values to the AFL code in
> charts elsewhere...? Static variables...?
> feedback appareciated
> TIA
> ------------------------------------
> **** 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
> *********************************
> 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@xxxxxxxxxxxxxxx
> mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx
> <*> To unsubscribe from this group, send an email to:
> amibroker-unsubscribe@xxxxxxxxxxxxxxx
> <*> Your use of Yahoo! Groups is subject to:
> http://docs.yahoo.com/info/terms/
__._,_.___
**** 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
*********************************
__,_._,___
|