[amibroker] PositionSize based on cash (not equity)

 

Hello,

is there a way of allocating position not as a percentage of equity but a percentage of remaining cash? 

When using high percentage per share, some cash is left unused, particularly when trades are profitable.

Eg. initial capital is $1000, and allocation is 50%, when I open 1 position and this position is profitable, backtester cannot open another position until first position is closed.

What I'd want to achieve is something like this (let's assume 25% or 1/4 allocation)

When no positions are open: allocate 1/4 of cash (= 1/4 of equity)
When 1 positions are open: allocate 1/3 of cash
When 2 positions are open: allocate 1/2 of cash
When 3 positions are open: allocate 1/1 (all the remaining cash).

This is not the equivalent of SetOption("AllowPositionShrinking", true); 

And – a broader question – is it a good idea? 

best regards

--
Marcin Jagodziński

__._,_.___

Posted by: =?UTF-8?Q?Marcin_Jagodzi=C5=84ski?= <marcin.jagodzinski@gmail.com>
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (1)

Save time and get your email on the go with the Yahoo Mail App
Get the beautifully designed, lighting fast, and easy-to-use, Yahoo Mail app today. Now you can access all your inboxes (Gmail, Outlook, AOL and more) in one place. Never delete an email again with 1000GB of free cloud storage.

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


.

__,_._,___


EmoticonEmoticon