Try this code, which let's you switch
using Parameters. However, it does not affect the Report/Settings. I have a
trouble
ticket in to AB now, but haven't heard in a week.
when = ParamToggle("Trade Day:","Next
Day,Same Day",0); //Normally can't do Next Day Open with Funds
if (when) SetTradeDelays(0,0,0,0); else SetTradeDelays(1,1,1,1);
OC = ParamToggle("Trade
Time:","Open,Close",0);
if (OC) BuyPrice = SellPrice = ShortPrice = CoverPrice
= Close;
else BuyPrice = SellPrice = ShortPrice = CoverPrice
= Open;
-----Original Message-----
From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of Anthony Faragasso
Sent: Friday, November 04,
2005 21:46
To: amibroker@xxxxxxxxxxxxxxx
Subject: Re: [amibroker] Overriding
"Settings" in .afl code
----- Original Message -----
Sent: Friday,
November 04, 2005 11:19 PM
Subject: [amibroker]
Overriding "Settings" in .afl code
I know
that I can use SetTradeDelays() in .afl code to override trade
delay 'periods' in the
"Settings>Trades" page. But how can I
override the Open or Close in the same page using
..afl code?
TIA. -- Keith
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
SPONSORED LINKS
YAHOO! GROUPS LINKS