Debugging Trading Strategies in Wealth-Lab Pro with Visual Studio
Author: disc999golfer999
Creation Date: 9/3/2010 6:33 PM
profile picture

disc999golfer999

#1
Good Afternoon,

I was trying to follow the example in Visual Studio 2008 Pro using C#:
http://www2.wealth-lab.com/WL5Wiki/kbAskGlitchDebug.ashx

What version Visual Studio and Edition are you using?

I ask because in the example you say that "Code Complete" will create the Get; Set; properties for you. I am not sure how to get Visual Studio to create it.

Under "Tools", "Create a GUID" Visual Studio 2008 Pro has 4 choices.
1). IMPLEMENT_OLECREATE(...)
2). DEFINE_GUID(...)
3). static const struct GUID = (...)
4). Registry Format (ie {xxxxxxxx-xxx .... xxx})

When I created the TestStrategyHelper public class it says I didn't create the inhereted abstract member classes

I have errors for the "WealthLab.StrategyHelper.Name.get; ID.get, Author.get, WealthScriptType.Get, Description.get, CreationDate.Get, LastModifiedDate.get" methods.

I am trying to create them now but am having problems...

CODE:
Please log in to see this code.


Part of the problem could be that I am not using Wealth Lab Developer and don't have any of those components installed.
Is that the right product to be using to test my own code out?
profile picture

Eugene

#2
QUOTE:
When I created the TestStrategyHelper public class it says I didn't create the inhereted abstract member classes

Just right-click on the parent class name in your class declaration to implement abstract classes in Visual Studio.
QUOTE:
I am trying to create them now but am having problems...

You should not "return Name" - rather, a meaningful value of type string.
QUOTE:
Part of the problem could be that I am not using Wealth Lab Developer and don't have any of those components installed.

Wealth-Lab Developer and Pro share the code base. There's no need to install no extra components (which "those" are you talking about?), except that to add a reference to WealthLab.dll (you have done it already).
profile picture

disc999golfer999

#3
OK Thanks...
This is how my code looks now..

CODE:
Please log in to see this code.
profile picture

Eugene

#4
NOTE: This code in post #3 will crash Wealth-Lab on startup. No single NotImplementedException should remain, every property must return an actual value.
---

The easiest way to get started is by getting one's hands on the ActiveTrader Strategy pack source code from the Wealth-Lab Wiki. There's a lot of ready-made strategies there, so starting out means just a copy/paste job.

I suggest creating a support ticket to have the ability to download attachments from the Wiki.
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).