PureBytes Links
Trading Reference Links
|
Why not make it easy for yourself and use more basic methods of param's
When = param( "Delay", 0, 0, 1 ,1 );
SetTradeDelays(When,When,When,When);
Price = ParamField(''Trade price'', field = 3 ) ;
BuyPrice = SellPrice = ShortPrice = CoverPrice = Price;
On 11/5/05, Terry <MagicTH@xxxxxxxxxxx> wrote:
>
>
>
> 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, November 04, 2005 21:46
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: Re: [amibroker] Overriding "Settings" in .afl code
>
>
>
>
> Buyprice=?
>
>
> Sellprice=?
>
>
>
> ----- Original Message -----
>
>
> From: keithmccombs
>
>
> To: amibroker@xxxxxxxxxxxxxxx
>
>
> 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
>
>
> Visit your group "amibroker" on the web.
>
> To unsubscribe from this group, send an email to:
> amibroker-unsubscribe@xxxxxxxxxxxxxxx
>
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
> To unsubscribe from this group, send an email to:
> amibroker-unsubscribe@xxxxxxxxxxxxxxx
>
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
>
> ________________________________
>
>
--
Cheers
Graham
AB-Write >< Professional AFL Writing Service
Yes, I write AFL code to your requirements
http://e-wire.net.au/~eb_kavan/ab_write.htm
------------------------ Yahoo! Groups Sponsor --------------------~-->
Try Online Currency Trading with GFT. Free 50K Demo. Trade
24 Hours. Commission-Free.
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/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/
|