It says 'Position' does not exist in the current context.
CODE:
foreach (Position p in Positions) { }
Rename
Thanks
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.
To find most of the equivalent methods like this on your own, drop in a new WL6.9 QuickRef. See links in this post.
Actually I found this in a post about NSF positions:
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
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
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
Thanks again
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.
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:I can think of at 3 least reasons, not the least of which is to not bother new customers with irrelevant info!
why not just include it in 7?
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.
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.
Your Response
Post
Edit Post
Login is required