Thanks Tomasz and Dennis - that's helpful. I'm not sure what you mean by evolving portfolio equity in the custom backtester - could you provide a simple example?
--- In [email protected], "Tomasz Janeczko" <gro...@...> wrote: > > Hello, > > Yes calculation of complex formula in one pane and passing to other panes > is the simplest application. > > Similar thing is making "complex" indicator re-calculate not with every > refresh, > but say only once a minute. The following example shows how to calculate > not more often than 5 seconds > > t = GetPerformanceCounter()/1000; > > diff = t - Nz( StaticVarGet("lastt") ); > > RecalcInterval = 5; // re-calculate ONLY every 5 seconds > > if( diff < RecalcInterval > AND Name() == StaticVarGetText("lastname") ) > { > Plot( StaticVarGet("precomputedarray"), "PreComputedArray", colorRed ); > } > else > { > something = MA( C, 10 ); > Plot( something, "FreshCalc", colorBlue ); > > StaticVarSet( "lastt", t ); > StaticVarSet( "precomputedarray", something ); > StaticVarSetText( "lastname", Name() ); > > } > > > Different way of using it is for example, storing "best" portfolio equity and > other > array metrics in the custom backtester and dynamically displaying them during > optimization (to watch "evolution" of best result) > > Another possibility is creation of composite indicators in a similar way > as AddToComposite, but faster. > > > Best regards, > Tomasz Janeczko > amibroker.com > ----- Original Message ----- > From: "Dennis Brown" <se...@...> > To: <[email protected]> > Sent: Saturday, March 07, 2009 4:14 AM > Subject: Re: [amibroker] Re: AmiBroker 5.24.0 BETA released > > > > There had been a lot of discussions in past posts about how static > > array variables could be used. However, I think the one that is most > > easily understood would be where you have two panes in a chart and you > > calculate a complex AFL to get some array in the top chart. However, > > you want to display an indicator in the lower pane that is derived > > from that complex calculation. Instead of duplicating the AFL from > > the top pane again in the lower pane, now the results from the top > > pane can be saved in a static variable, and the AFL in the lower pane > > can just use the array value in the same static variable. > > > > We have had the ability to pass single values between charts (or AFL > > passes), but now we can do that with complete arrays. I am sure > > others will find interesting things to do with static array variables > > over time. > > > > Best regards, > > Dennis > > > > > > On Mar 6, 2009, at 8:06 PM, droskill wrote: > > > >> Very interesting - I'm wondering if someone could provide an simple > >> example of how one might use the feature - I realize this is > >> probably obvious to all of you - but I'd be curious to see what > >> people are using them for. > >> > >> --- In [email protected], "brian_z111" <brian_z111@> wrote: > >>> > >>> Thankyou very much Tomasz. > >>> > >>> Another small addition that leverages a lot of possibilities. > >>> > >>> Again it was the end result of very good communication between you > >>> and the forum. > >>> > >>> Thanks for looking after Natasha too. > >>> > >>> > >>> --- In [email protected], "Tomasz Janeczko" <groups@> wrote: > >>>> > >>>> Hello, > >>>> > >>>> AmiBroker 5.24.0 BETA is released now: > >>>> http://www.amibroker.com/devlog/2009/03/06/amibroker-5240-beta-released/ > >>>> > >>>> This is somewhat special beta because it contains only one fix and > >>>> introduces only one new feature: array static variables. > >>>> I decided to release this feature "alone" because the static > >>>> variable code > >>>> has been completely rewritten, so in case of any issues, it would > >>>> be easy > >>>> to revert to 5.23. > >>>> > >>>> Best regards, > >>>> Tomasz Janeczko > >>>> amibroker.com > >>>> > >>> > >> > >> > >> > >> > >> ------------------------------------ > >> > >> **** IMPORTANT PLEASE READ **** > >> This group is for the discussion between users only. > >> This is *NOT* technical support channel. > >> > >> TO GET TECHNICAL SUPPORT send an e-mail directly to > >> SUPPORT {at} amibroker.com > >> > >> TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at > >> http://www.amibroker.com/feedback/ > >> (submissions sent via other channels won't be considered) > >> > >> For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG: > >> http://www.amibroker.com/devlog/ > >> > >> Yahoo! Groups Links > >> > >> > >> > > > > > > > > ------------------------------------ > > > > **** IMPORTANT PLEASE READ **** > > This group is for the discussion between users only. > > This is *NOT* technical support channel. > > > > TO GET TECHNICAL SUPPORT send an e-mail directly to > > SUPPORT {at} amibroker.com > > > > TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at > > http://www.amibroker.com/feedback/ > > (submissions sent via other channels won't be considered) > > > > For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG: > > http://www.amibroker.com/devlog/ > > > > Yahoo! Groups Links > > > > > > >
