I would like to know on how to set the minimum % requirement in holding stock within portfolio, for example, if I should hold 0.56% of stock ABC within my portfolio, then I would ignore it and hold cash instead.
Does anyone have any suggestions on how to determine this minimum percentage?
Thanks in advance for any suggestions
How to set the minimum % requirement in holding stock within portfolio?
Re: How to set the minimum % requirement in holding stock within portfolio?
Something like:should work
Code: Select all
IF ( (quantity*order.fillPrice/test.totalEquity) < minPctPortParam) THEN order.Reject( "Order < Than minPctPort" )