Hi,
I see that Basis Price is a read-only value. Is there any way to respecify it (i.e. set it to a different value)?
Thanks,
Sebastian
Size:
Color:
No, and user shouldn't be alternating it. Out of curiosity, what's the point?
(On basis price, please see "100% of Equity Sizing" in the User Guide).
Size:
Color:
P.S. In PosSizers, you can specify anything as the BasisPrice and pass it to CalcPositionSize.
Size:
Color:
Thanks Eugene.
I am using the PosSizer Position Options, in which I use the Tag value to specify the % of equity to invest in a certain stock. Given that my order are on closing prices, the number of shares is based on the BasisPrice (i.e on the close) on which the signal arrives. However, as the trade occurs only a few dates later, I would like to respecify my Basis Price.
Sorry to ask, but I couldn't find any reference to CalcPositionSize on the webpage or the user guide. Could you quickly explain how to use the latter?
Thanks in advance!
Size:
Color:
Size:
Color:
Is it possible to link an existing PosSizer to a new one (i.e. to add functionality) or would this require to access the source code (which I think is proprietary)?
Thanks again for your great support Eugene!
Size:
Color:
Not as a solution to the question above, but you can try inheriting from an existing PosSizer. That won't extend it and/or alter the way it works, you just can re-use the sizing as determined by that PosSizer in your own.
Size:
Color:
Brilliant, this should do the trick. I will give it a go!
Size:
Color: