Keeping track of open positions in Multi-Symbol Backtest (MSB)
Author: ss161
Creation Date: 8/12/2009 12:28 PM
profile picture

ss161

#1
is this possible to do?

i know i can right a script that runs in SSB and loops through each symbol in the dataset and keep track of open positions that way, but in MSB, for a given date, is there a way to tell how many open positions there are with the other symbols?
profile picture

Cone

#2
Right now, none.

In 5.6, with PosSizers, you'll be able to do this on a Portfolio level. You won't be able to use this information in the Trading Script's rules, but at least with PosSizers you can limit the Positions you put on by rejecting trades.
profile picture

Eugene

#3
Theoretically, I could imagine writing such code. However, that would be a "hack" (read: unreliable). Steve, take a look at this:

Community.Components (source archive)
Interacting Dynamically with Portfolio Level Equity

The source for equity curve data and open positions in MSB is the same. Here's a quick demo:

CODE:
Please log in to see this code.
profile picture

Cone

#4
I really don't think we should keep promoting this method. Especially with PosSizers coming, there will be no way to tell which of the Positions in the list are actually used in the final backtest results, except for Raw Profit simulations.
profile picture

HappyLoser

#5
Cone, for me this point is of big interest as well. Can you give a hint, when to expect the release of PosSizers? I know you don't like to give a fix date, but please give at least a time interval. Will it come this year? Rgds
profile picture

Eugene

#6
It could happen early next year.
profile picture

HappyLoser

#7
Tx a lot Eugene.
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).