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

[amibroker] Re: database question



PureBytes Links

Trading Reference Links

Hi, I picked up some coe somewhere that helped me to define the 
maximum number of contracts that I would use.  The code looks like 
this and works well.

PointValue = 5; // One e-Mini DOW Futures Contract is $5
maxNumberOfContracts=1000; // Never open a position with more than 
1000 contracts (i.e. $5,000 a point)
RequiredMargin= 2000; //Not sure how this works but it does!
PositionSize= maxNumberOfContracts * MarginDeposit; // Assign number 
of contracts for this trade.


Because I don't fully understand how this works, I THINK that I'm 
always using the maximum number of contracts that I'm allowed (up to 
my limit), which I believe MAY be hurting my "Maximum System 
Drawdown".

Could somebody help me to amend this code so that I can define what 
percentage of my position should be used to allocate the number of 
contracts, etc.

Thanks

P.S. Sorry if my terminology is a bit off, I'm a bit new to this but 
hopefully learning fast :)






------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->

Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.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/