Setting Position Size?
Author: kfmfe04
Creation Date: 2/22/2009 8:21 AM
profile picture

kfmfe04

#1

1. By % of NAV at bar (end-of-day)
2. By fixed dollar amount

Is there a way to do either (I actually need to do both) within the C# code?
Thanks in advance.

- Ken


profile picture

Eugene

#2
Unfortunately, none of the position sizing options are available within the C# code: FAQ | "Missing" features

Since both PosSizers or SetShareSize analogue are highly requested features maybe Fidelity will implement it in a later build?

Is it possible to write a script to call two scrip
Combining Max Percent Risk and Portfolio Percentag
Why doesn't the Position object have a ShareSize p
SetShareSize +
How to set adjust shares during buy...?
profile picture

kfmfe04

#3
Ahh... ...the FAQ on:

Interacting Dynamically with Portfolio Level Equity

says it's coming soon (since 1/14).

I suppose the KB-solution must be non-trivial, because I see you pumping out code very quickly in some board responses! 8^O

Without a Fidelity response, a KB-style "workaround" is possible, then?


profile picture

Eugene

#4
QUOTE:
I suppose the KB-solution must be non-trivial, because I see you pumping out code very quickly in some board responses! 8^O


The solution is ready and is designed to be user friendly but there are some showstoppers:

1) Results not always repeatable
2) Internal tick adjustment in V5 corrupts the stop/limit order value repeatability
2) Overall slowness in duplicating historical trades

QUOTE:
Without a Fidelity response, a KB-style "workaround" is possible, then?


With the Position.Shares property read-only, I doubt we can do much of a workaround.
profile picture

Eugene

#5
Well, since you guys keep asking for that KB article... here it goes:

WealthScript Techniques | Interacting Dynamically with Portfolio Level Equity

Unfortunately it's not a finished product because of the issues above :(

But anyway, "we call it beta because it's beta than nothing!" :)