Okay, I see what you want now. You need to use a fixed value for
PositionSize. AA automatically does compound testing and the number of
contracts is varying with the amount of equity you have.

Try this in your code:


PositionSize = Param("Position Size",-100,-100,1000000,1);
//Adjustable in Parameters

Or just

PositionSize = 9200; 
//Or a multiple thereof to trade more than 1 contract

Maybe even this:

numContracts = Param("Number of contracts to trade",1,1,100,1); 
PositionSize = 9200 * numContracts;

I also question your Point value. Do you really want 10,000:1 leverage?
--
Terry
-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of PKJR
Sent: Tuesday, June 20, 2006 09:40
To: [email protected]
Subject: Re: [amibroker] Testing - # of contracts

Tks Terry - I did exactly like you prescribed.. I still get different
number of contracts.. pic attached showing all the settings

On 6/20/06, Terry <[EMAIL PROTECTED]> wrote:
> Go to the symbol you want to test.
> Right-click and choose Information.
> Fill out the info as shown in the attached screen shot for NQ.
> Leave that symbol selected and run your back test.
> --
> Terry
>
> -----Original Message-----
> From: [email protected] [mailto:[EMAIL PROTECTED] On
> Behalf Of PKJR
> Sent: Tuesday, June 20, 2006 07:52
> To: [email protected]
> Subject: [amibroker] Testing - # of contracts
>
> Hi All:
>
> I am still in the learning mode here  but I'm trying to get through
> the learning curve asap.... I tried almost everything to get the
> testing results based on 1 contract basis (futures mode).
>
> I tried the following in my code (one or all):
> //PositionSize = MarginDeposit = 1;
> SetOption("MaxOpenPositions", 1 );
> SetPositionSize(1, spsShares);
>
> in my code and I always get different position count - pic attached..
>
> I know it must be something simple..
>
> tks/Paul
>
>
>
> 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
>
>
>
>
>
>
>
> 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
>
>
>
>
>
>
>



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 --------------------~--> 
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/DEOZVC/fOaOAA/cosFAA/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:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to