Set position size in Strategy code
Author: mheb
Creation Date: 11/3/2010 8:15 AM
profile picture

mheb

#1
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
profile picture

Eugene

#2
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)
profile picture

mheb

#3
Thanks a lot
I searched after setPosition
mh
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).