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
>


Reply via email to