Hello,
Use this,
Param_LotSize = Param("Lot Size",
50,5,5000,5); Param_NoOfLots = Param("No of lots normally traded (used for
backtesting only)",1,1,10000,1);
SetOption("FuturesMode",
True); SetOption("MaxOpenPositions",1); RoundLotSize =
Param_LotSize; SetOption("MinShares",RoundLotSize);
Above lot size is for Nifty, has to be changed if
required for Individual Stocks / other Indices
Cheers
Prashanth
----- Original Message -----
Sent: Tuesday, November 24, 2009 16:44
PM
Subject: [amibroker] Limiting number of
positions ( contracts)
I trade only futures and while i backtest then number of contracts bought
are very huge in the AA how can i limit the number of contracts
Tried numcontracts
this is simple.
i am missing
something
__._,_.___
**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.
TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com
TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
__,_._,___
|