[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

I believe that TJ said the settings file has to be loaded before an AFL is run. So, you will have to do it outside the AFL.
 
d


From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of keithmccombs
Sent: Tuesday, September 06, 2005 11:45 PM
To: amibroker@xxxxxxxxxxxxxxx
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