Access the Position Sizing Settings at run-time
Author: BigReturns
Creation Date: 1/6/2014 12:28 PM
profile picture

BigReturns

#1
I was looking for a way to access the position size (percent of equity) at run-time but couldn't find any documentation for this.

I do not need to change the size, I just need to see it so I can adjust variables based on the Position Size (% Of Equity).

Is there a way to do this?
-BR
profile picture

Eugene

#2
GetPositionSize from Community Components will get the job done. More information in the Wiki and here:

Get Starting Capital from Code
How to get strategy name and starting capital?
profile picture

BigReturns

#3
Thank Eugene.

Is there a complete list of community components API somewhere? I need the "Percent of Equity" value at run-time.
profile picture

Eugene

#4
It's not some "Community Components API" -- that's Wealth-Lab's own raw configuration string it uses to store the position sizing settings. The percent of equity is highlighted:

QUOTE:
PositionSize=PctEquity;5000;1;100000;5000;100;10;3;Position Options ;1;0;*Position Options ^PctEquity|5000|10|2|False|5|False|1|False|False|2|False|2|False|0|False|False|0|0.5|2|False|False|5|False|0|5|False|0.1|10|False|50000|0|False|50000|0|False|15|False|False|False|
profile picture

Cone

#5
You can find everything that's included in Community.Components in the Wiki.

Atop this page, click Wealth-Lab >> Wiki >> Community.Components
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).