Hi
I'm looking to minimize the amount of code visible in the WL6 C# editor. Would like to have as much of the strategy code in Visual Studio as possible. Could anybody point me in the direction of an example of how to do this?
Thanks!
Jon Brewer
Size:
Color:
Size:
Color:
Thanks Eugene for your speeedy reply! I will read the articles!
regards Jon
Size:
Color:
Eugene,
Sorry, embarrasing question: I fall over on point 6 in first article. What does the helper class look like? Would it be possible for you to send me an example of the helper class? I'm new to C#... and having problems implementing the properties...
Regards Jon Brewer
"In the same source code file (or a different file if desired) create a new class derived from StrategyHelper. A StrategyHelper is required for each Strategy that you create. Wealth-Lab examines your assembly for the StrategyHelpers that it contains, and uses them to determine what Strategies to display and load. Name the helper class the same name as your Strategy's class name, with the word "Helper" appended. Use code completion to provide stubs for the required properties. The Strategy Helper class returns properties that describe details about the Strategy that are needed by Wealth-Lab. Implement the properties in the code of your helper class."
Size:
Color:
...hold your horses... think I've got it...
Size:
Color:
Got it running, find my strategy from WL and it runs! have no code visible in WL, in fact no Editor tab at all!
Size:
Color:
QUOTE:
have no code visible in WL, in fact no Editor tab at all!
This is how it should be. Wealth-Lab's editor supports C#. But let's suppose that your language of choice was VB .NET when compiling the strategy library? What if you coded it in C++ or any other supported .NET language? Should Wealth-Lab act as ".NET Reflector"? Moreover, what if you have obfuscated the code so it has become (intentionally) unreadable, can't be restored back to a high-level language, and the only thing that's left is to show it as byte code (MSIL)? ;)
You get the picture. To sum it up, being able to restore source code from a compiled assembly is either unpractical, or impossible, and in some cases (read: when obfuscated) unwanted.
Size:
Color: