Is it possible to manipulate DataSet Contents and change symbols programmatically?
Author: johns05
Creation Date: 11/9/2009 7:50 AM
profile picture

johns05

#1
I have a strategy that moves through a long list of symbols contained in a dataset. This original list can contain as many as 4000 symbols I am working on.
If I encounter a problem with the symbol data (i.e. gaps that I can't work around etc.) I have a Try/Catch construct to capture these problems. I'd like to be able to delete the symbol from the dataset if I find myself in the catch portion of the code. I've spent several hours looking through the support community and the wiki for information on if this is possible, but either I am searching the wrong terms or there are no references. Is there anyway you could let me know if the above is possible?

Thanks,
profile picture

Eugene

#2
Modifying DataSet contents from a Strategy isn't possible. It's best if you call your Fidelity rep and request them to add the missing WatchList* methods.
profile picture

Eugene

#3
Here's some API hack to prove that it won't work in a Strategy:
CODE:
Please log in to see this code.


Note: even if this code worked (it does not), you would not see the result until WL5 is restarted.
profile picture

Cone

#4
I'm not going to say it's not possible, but it's not supported. Wealth-Lab caches Static DataSets (symbols) so that it can access them more quickly the next time in the same session. Even if you physically delete the symbol and/or even modify the Static DataSet, Wealth-Lab won't know about it and therefore will continue to act as if the "delete" symbol were there.

... as Eugene's example probably demonstrates.
profile picture

johns05

#5
AH ok...thanks guys, as always you're really fast in the replies. I'll make sure I request this feature with Fidelity. On another note, for some reason my mouse scroll button quit working in the strategy edit window, although it works in every other window within WL5.5. Any ideas on what I might've fat fingered to make this break?

Thanks again
profile picture

Cone

#6
I don't see an Editor option for that. Is the vertical scrollbar visible?
profile picture

Eugene

#7
Never seen anything like this, so no idea. Try closing down and reopening WLP. If that doesn't help, delete EditorSettings.xml in Wealth-Lab's Data folder (see the User Guide > Data for its location).
profile picture

johns05

#8
Ok the vertical scrollbar is visible. I could not find EditorSettings.xml anywhere on the system so I couldn't delete it.

This is a brand new installation after a crash of WL5.5 when I did a Microsoft update. It seems that when you leave WL5.5 open during the normal Microsoft Updates which occur automatically, that the registry does not get updated properly and WL will not work anymore (it stops responding immediately on start up). After 45 minutes with the MS support guys in India, he opened the log files from MS Win 7 and found this to be the issue. I then unloaded WL5.5, stepped through every disk and directory I could find that referred to it (deleting the references) and reloaded the program. It works fine now, except for that annoying little issue of the scroll wheel on my mouse not working, in the edit window of the strategy. It works fine everywhere else in WL. And when you're programming, you know how useful it is to be able to scroll from the mouse. Now, I have a scroll wheel on my key board and it works fine, so it's really weird what the problem is.
My Options setting in the edit window are: Vertical Scroll Bar: checked, Highlight URL's: Checked, Horizontal Scroll bar:checked, Line Modificators:checked, Drag and drop text:checked, Show gutter:checked, Gutter wieth 16, margin position 80, Shoe line numbers: Checked. I hope this helps, I have a feeling there is some little switch in the registry that I missed and it's causing this weirdness...
profile picture

Eugene

#9
QUOTE:
I could not find EditorSettings.xml anywhere on the system so I couldn't delete it.

Look, the User Guide already gives you the precise location. No need to search. Just enable hidden file visibility.
QUOTE:
Now, I have a scroll wheel on my key board and it works fine, so it's really weird what the problem is.
+
Now it looks like your mouse driver issue.
QUOTE:
I have a feeling there is some little switch in the registry that I missed and it's causing this weirdness...

WL5 does not use the system registry.
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).