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

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



PureBytes Links

Trading Reference Links

Tomasz --
I am now reading the saved settings file thanks to your pointing out 
the Double Backslashes.  However, it appears that not ALL values from 
the saved version are used.  For example, Open/Close, in trade delays 
follows the most recent AA Settings and not the ones in the saved 
version called by LoadSettings.
Thanks for your response.
-- Keith

--- In amibroker@xxxxxxxxxxxxxxx, "Tomasz Janeczko" <amibroker@xxxx> 
wrote:
> Hello,
> 
> In JScript you need to have DOUBLE BACKSLASHES in the file path.
> 
> Best regards,
> Tomasz Janeczko
> amibroker.com
> ----- Original Message ----- 
> From: "keithmccombs" <kmccombs@xxxx>
> 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 --------------------~--> 
Make a difference. Find and fund world-changing projects at GlobalGiving.
http://us.click.yahoo.com/PcNrnD/PbOLAA/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/