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

Re: [amibroker] Problem calling LoadSettings using script in AFL



PureBytes Links

Trading Reference Links

Hello,

In JScript you need to have DOUBLE BACKSLASHES in the file path.

Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message ----- 
From: "keithmccombs" <kmccombs@xxxxxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Wednesday, September 07, 2005 5:44 AM
Subject: [amibroker] Problem calling LoadSettings using script in AFL


>I expected the following AFL code to use settings from saved 
> settings, "Minimum.abs".  Instead it uses whatever is in current AA 
> Settings.  Note: AA.LoadSettings and ("C:\...") are on the same line.
> 
> Also, does anyone know what the range, -2, means in Equity( 0, -2 ).  
> I don't see it defined in any of the help files.  I just copied it 
> from examples.
> 
> Thanks.
> -- Keith
> ==================================================
> 
> EnableScript("jscript");
> <%
>  AB = new ActiveXObject("Broker.Application");
>  AA = AB.Analysis;
>  AA.LoadSettings
> ("C:\Program Files\AmiBroker\Formulas\Custom\Minimum.abs");
> %>
> 
> SetTradeDelays(1,1,1,1);
> 
> f = 10000/12.00;
> Plot(f*C, "Close", colorBlack, styleThick);
> Buy = 1;
> Sell=Short=Cover=0;
> Plot( Equity( 0, -2 ), "Equity", colorRed, styleThick );
> 
> 
> 
> 
> 
> 
> 
> 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 other support material please check also:
> http://www.amibroker.com/support.html
> 
> 
> Yahoo! Groups Links
> 
> 
> 
> 
> 
> 
> 
>


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Help tsunami villages rebuild at GlobalGiving. The real work starts now.
http://us.click.yahoo.com/njNroD/KbOLAA/cosFAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

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

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