PureBytes Links
Trading Reference Links
|
Graham,
The part that doesn't work is in the Report after a back test. All other
SetOption functions work and change the Settings in Report except this
one. It reflects what's in AA settings.
Also note the SetOptions for Futures does not "finish" the job. You must
STILL check the Futures box in AA-Settings-General to get it to back
test futures.
--
Terry
-----Original Message-----
From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On
Behalf Of Graham
Sent: Saturday, November 05, 2005 15:42
To: amibroker@xxxxxxxxxxxxxxx
Subject: Re: [amibroker] Overriding "Settings" in .afl code
It is listed in the AFL function list in help
To me seeing delays as 0 or 1 is easier than text as you do not always
have the same bar period, just comes to personal preferences.
I thought you had said the paramtoggle was not working so that is why
I put forward an alternative.
but reading back to the email I answered, the AFL will not change what
is in the AA settings windows, it only overrides the values that arein
the settings window so that the AFL values are used instead of.
On 11/6/05, Terry <MagicTH@xxxxxxxxxxx> wrote:
> Graham,
>
> I like my ParamToggle for the first one. Easier for users. How about
> this incorporating your simplification?
>
> When = ParamToggle("Trade Day:","Same Day,Next Day",0);
> SetTradeDelays(When,When,When,When);
>
> I do like your ParamField for the 2nd one, gives more choices and is
> simpler! I have changed all my code. Thanks.
>
> Oddly, ParamField is not listed under Help:Index. I did find it using
> Help:Search. I will submit to bugs for correction. I'm using 4.70.5.
> --
> Terry
> -----Original Message-----
> From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On
> Behalf Of Graham
> Sent: Saturday, November 05, 2005 14:48
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: Re: [amibroker] Overriding "Settings" in .afl code
>
> 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;
>
>
>
>
> 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
>
>
>
>
>
>
>
--
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
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 --------------------~-->
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/
|