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

Re: [amibroker] Optimisation Arithmatic



PureBytes Links

Trading Reference Links

On Tuesday 21 of October 2003 12:12, Steve Almond wrote:
> I'm using the PositionSize parameter to optimize the number of stocks to
> hold. The normal form is :
>
> PositionSize = -20;
> Which assigns 20% of the equity to each stock (5 stock hold). I want to
> optimize something like this:
>
> P=Optimize("P",10,100/10,100/5,???);
>
> PositionSize = -P;
>
> How do I increment this so that I end up with testing 5,6,7,8,9 and 10
> stocks held?

P=Optimize("P", 5, 5, 10, 1);
PositionSize = -100/P;

does it make sens for you?
-- 
Marek Chlopek
mchlopek@xxxxxxx

------------------------ 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 

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