Hello all.
I am trying to find out, how to set the position size in the strategy code e. g. for trading spreads in a predefined ratio, where the spread is not cash neutral.
mh
Size:
Color:
Basically you have two different options w.r.t. custom position sizing:
1. In your case, using
SetShareSize in Strategy code is more appropriate (hit F11 to open the QuickRef and see a code snippet)
2. The alternative that requires some programming skills is building a PosSizer (
API reference)
Size:
Color:
Thanks a lot
I searched after setPosition
mh
Size:
Color: