Hello,
I am working on a gap buy strategy and would like to dynamically divvy up a set amount of capital between how many times the gaps occur on that day. For example, if 7 gaps occur, divide 25000 by 7, and round down to the nearest $5 to prevent going over the capital. On the same toke, if 20 gaps occur, divide 25000 by 20 and enter each position equally.
Is this possible via a PosSizer script?
Thanks!
Size:
Color:
Welcome aboard.
Yes, this is possible via the PosSizer approach (although they are not exactly
scripts but rather compiled libraries i.e. DLLs). We've created two PosSizers to spread the available equity between trade candidates:
Spread Equity EquallyGraded equity percentageThey're members of the
MS123 PosSizer Library which is downloadable after verification of your Fidelity account. To do this, please
create a support ticket.
P.S. One thing that won't be possible with the current WLP version is that due to
live issue #62853, the PosSizers may not work correctly for Alert sizing. For backtesting it's OK though.
Size:
Color:
Thank you!
Size:
Color: