Hi,
I am trying to backtest call spreads. I currently have code that is using 2.5% of my portfolio on a synthetic contract using the position options pos sizer. What I would like to do is sell the same number of contracts to create a spread. However, I don't know how to precisely say 'sell to open N contacts' if my pos sizer is already using pct equity. Does anyone have any suggestions?
Thanks!
Jec
Size:
Color:
Hi Jec,
The
PosSizer lets you specify a variable percent of equity in WealthScript code through the "Use .Tag" button (if you mean this).
Size:
Color:
Yes that's what I'm using. Ok, I'll give that a shot. I can calculate what percentage to sell given the current contract price. Thanks Eugene.
Size:
Color:
Any time.
Size:
Color: