XML initialization error on WLP startup
Author: pacerra
Creation Date: 11/16/2009 9:38 AM
profile picture

pacerra

#1
I'm not exactly sure how to describe this but I wrote a new strategy which I was able to backtest against for a few days. After closing WLP I could no longer reopen WLP unless I removed the new strategy from my strategy folder.(I was getting an initialization error-- odd becausethe strategy is not part of a default workspace). Suspecting the Strategy file became corrupt I tried to open the strategy .xml file in word and received the following message "The following tags were not closed: Strategy, PositionSize."

Is there any way to reinitialize/Close these tags. the strategy is written in c#.

thanks

Paul
profile picture

Eugene

#2
Even though the strategy isn't a part of a default workspace, this initialization error is expected because WL5 scans the Strategy folder on startup.

Move the failing XML file outside of the Data/Strategies folder, open the file in Notepad, copy only the strategy code from "using..." to the closing "}", and paste into a new strategy window.
profile picture

pacerra

#3
Thanks, I actualy figured that out after i wrote the question, I just got back. Sorry for wasting your time.

Paul
profile picture

pacerra

#4
Although, Do you know what may have caused the xml to fail in the first place? File Corruption?

Just wondering
profile picture

Eugene

#5
I haven't experienced this kind of defect so far, and we'll most likely never know if it was a unique accident. Should you experience it again, please let us know.
profile picture

pacerra

#6
OK
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).