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

RE: [amibroker] Overriding "Settings" in .afl code



PureBytes Links

Trading Reference Links

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;

 

--

Terry

-----Original Message-----
From:
amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of Anthony Faragasso
Sent: Friday, Novem
ber 04, 2005 21:46
To:
amibroker@xxxxxxxxxxxxxxx
Su
bject: Re: [amibroker] Overriding "Settings" in .afl code

 

Buyprice=?

Sellprice=?

----- Original Message -----

From: keithmccombs

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
Real estate investment software Investment property software Software support
Real estate investment analysis software Investment software Investment analysis software


YAHOO! GROUPS LINKS