- ago
It says 'Position' does not exist in the current context.

CODE:
foreach (Position p in Positions)          {          }
0
640
7 Replies

Reply

Bookmark

Sort
- ago
#1
Thanks
0
Cone8
 ( 28.32% )
- ago
#2
GetPositions()

To find most of the equivalent methods like this on your own, drop in a new WL6.9 QuickRef. See links in this post.
0
- ago
#3
Actually I found this in a post about NSF positions:

CODE:
List<Position> positions = GetPositionsAllSymbols(true);


Which is part of the UserStrategyBase but isn't listed in the in-program reference. I tried typing UserStrategyBase.Get to see what other options there were with the pop-ups that sometimes show and nothing came up. Then I just guessed that GetPositions might work and it did. When I double clicked that then an example even came up.

So I guess the suggestion that can come up from this is to improve the search in the reference - i.e. actually allow a search rather than just having the classes. Maybe I'm missing the search section? The ? opens up a searchable list but it doesn't come up in that either.

You can either close this or consider it a feature request.

Thanks
0
- ago
#4
We cross posted :) The 6.9 ref is just a PDF and not searchable in WL7. So my suggestion of having a better search option inside WL7 that lets you find all the resources that are already programmed in would be nice.

Thanks again
0
Cone8
 ( 28.32% )
- ago
#5
The QuickRef with translations was created for 6.9. If you're translating, you're likely to have 6.9 open and can see the Version 7 equivalent in the 6.9 QuickRef.

The link I gave you points to a drop-in QuickRef for 6.9. You can click on the code in 6.9 to get the Version 7 equivalent from the 6.9 QRef.

QUOTE:
why not just include it in 7?
I can think of at 3 least reasons, not the least of which is to not bother new customers with irrelevant info!
0
- ago
#6
I never got WL6 after Fidelity shut it down because I needed live trading. WL7 allows that which is why I'm looking at it and if I can figure it out (i.e. replicate the strategy and get it to work with a broker for live trading) will get it.

Ok I'm an idiot and didn't scroll down in the quick ref. I will say that had I been able to search for the text string "position" it would've come up and saved this whole discussion :)

Sorry about that.
0

Reply

Bookmark

Sort