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

Re: [amibroker] Limiting number of positions ( contracts)


  • Date: Thu, 26 Nov 2009 20:38:13 +0530
  • From: "Prashanth" <prash454.ta@xxxxxxxxx>
  • Subject: Re: [amibroker] Limiting number of positions ( contracts)

PureBytes Links

Trading Reference Links



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/





Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___