Charts are indepenendent from AA. The fact that you are loading some formula into Automatic Analysis, does not mean that you have it on chart. You don't. They are independent.
There is separate control over chart window contents via Window object. http://www.amibroker.com/guide/objects.html Best regards, Tomasz Janeczko amibroker.com ----- Original Message ----- From: "fmaurer01" <[email protected]> To: <[email protected]> Sent: Sunday, July 26, 2009 10:05 PM Subject: [amibroker] Re: How to see in chart window the AFL loaded with LoadFormula from JScript? > The AFL is indeed using a Title statement: > > // Get the name of the active AFL. > ActiveAFL = StrLeft(_DEFAULT_NAME(),StrLen(_DEFAULT_NAME())-2); > // Header title > _N(Title = ActiveAFL + " - " + StrFormat("{{NAME}} Open %g, Hi %g, Lo %g, > Close %g (%.1f%%) Vol " +WriteVal( V, 1.0 ) +" > {{VALUES}}", O, H, L, C )); > > > Problem is that nothing is shown. What exactly do you suggest? Or were you > asking a question? > > Regards, > > Franz > > --- In [email protected], "Anthony Faragasso" <ajf1...@...> wrote: >> >> could you use the TITLE = function. >> >> ----- Original Message ----- >> From: fmaurer01 >> To: [email protected] >> Sent: Saturday, July 25, 2009 6:49 PM >> Subject: [amibroker] How to see in chart window the AFL loaded with >> LoadFormula from JScript? >> >> >> Hi, >> >> I want to do a AA.LoadFormula and see the loaded AFL in the current chart >> window. >> >> The code base I use for that is: >> AB = new ActiveXObject("Broker.Application"); >> Docs = AB.Documents; >> AA = AB.Analysis(); >> ABDLoadDatabase(DestDataDir); >> AA.LoadFormula(AmiBrokerDir + "Formulas\\just_an_AFL.afl") ) >> >> The AFL is loaded correctly, which can be checked by for exmaple loading >> the Backtest function: AA.Backtest(); >> But I do not succeed in seeing the loaded formula in the Chart Window. >> Does someone know how to make a loaded AFL visible on the current sheet? >> >> Thanks in advance. >> >> Regards, >> Franz >> > > > > > ------------------------------------ > > **** 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 > > >
