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

[amibroker] Re: Testing - # of contracts



PureBytes Links

Trading Reference Links

Small corretion - I actually did not mentioned that before but I am
testing the system on composite symbol.. ~MySymbol

with the line of code: PositionSize = MarginDeposit = 1;

The above works if I test on future contract but the moment I switch
to composite symbol with the same settings as future contract the
above line is not limiting me to one contract.. does anyone know
solution to this problem?

Paul

On 6/20/06, PKJR <TradingIQ@xxxxxxxxx> wrote:
> 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
>
>
>