Why doesn't the Position object have ShareSize property
Author: jimcrist
Creation Date: 12/12/2008 11:42 AM
profile picture

jimcrist

#1
I was looking for SetShareSize and it's gone in WL5. I found this in the documentation:

"Notice that the details of Position size (shares) are not specified in the Strategy code. Instead, the size is determined by the Position Size control in the Data Panel (User Guide)."

The data panel's Position Size options are too limited for my needs. If you provided a ShareSize property, I could set it with a calculation. Any plans for this???
profile picture

Eugene

#2
Although you wouldn't find it answered by Wealth-Lab Wiki FAQ > "Missing" Features directly, I fear that SetShareSize and the like is unlikely to ever appear in WL5. Nonetheless, setting position size will be back in WL5.4 as PosSizers (aka the $imuscripts of old).

If I was to speculate about the reason why, perhaps it has something to do why ClearPositions is considered not working correctly and has a chance to be removed from future builds of WL5.
profile picture

Cone

#3
Although SimuScripts are favored over using SetShareSize in Version 4, I actually think SetShareSize could have special utility in Version 5. By using SetSharesSize from within the script, you'd be able to estimate bar-to-bar Equity while processing the trading logic, and therefore we could actually recover the ability to make trading decisions based on equity and cash again.

I'll bring this up for an idea for next year. There seems to be a lot of bang for the buck here :)
profile picture

jimcrist

#4
Any progress on adding SetShareSize to WL5?
profile picture

Cone

#5
It should make 5.4.
profile picture

BigReturns

#6
Great....

I've been waiting for this. I need would like to set share size (position risk) based on other factors such as volume and volatility.

Do we have a release date yet for 5.4?
profile picture

Eugene

#7
Sorry to disappoint you, this is not coming in 5.4 - rather late this year in another build. On the other hand, 5.4 with the optimizer tool is coming pretty soon.
profile picture

jimcrist

#8
I REALLY need to be able to set my position size. What's the timetable for this?
profile picture

Cone

#9
5.5 SetShareSize - next week?
5.6 PosSizers (formerly known as SimuScripts)
profile picture

jimcrist

#10
Great, thanks!
profile picture

jimcrist

#11
In WLP5.5 can we access the current equity from within our WealthScript program? Please?
profile picture

Cone

#12
If you know the sizes of the Positions by virtue of the use of SetShareSize, you could calculate an estimate of the Equity Curve. An estimate should be plenty good for any practical purpose.
profile picture

Eugene

#13
QUOTE:
In WLP5.5 can we access the current equity from within our WealthScript program?

We already can have quite a good estimate if we follow this technique: Interacting Dynamically with Portfolio Level Equity
profile picture

jimcrist

#14
Thank you for version 5.5 and SetShareSize. I set Position Size in the control panel to SetShareSize. In my program, I SetShareSize, took a position, and then checked LastPosition.Shares. Shouldn't it be the SetShareSize number? I'm trying to add to a position, take multiple positions in a stock.
CODE:
Please log in to see this code.
profile picture

Eugene

#15
You did everything properly, but in portfolio simulation mode, all trades are still pre-executed with 1 share per Position. Since position sizing is applied after the fact, custom sizing (999 shares) will be reflected in the system's results - just not while the Strategy is executing.
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).