Debugging Strategies in Visual Studio 2010
Author: Gostling
Creation Date: 6/26/2012 12:33 AM
profile picture

Gostling

#1
Hi

I have worked about 2 days to use visual studio Pro 2010 to be setup to debug WLP C#.... and almost have it working..

I used the paper "Programming | How can I debug my trading strategies in Wealth-Lab?" by by Dion Kurczek.

I have completed steps 1 thru 13 and fail on step 14. This step should have the code class I wrote show up as a startegy in the open strategy dialog window of WLP... and it never shows up as a strategy to be slected..

This is a routine procedure for most members on this forum...I am missing something obvious... Any suggestions what to try??

The ref paper was written before VS2010 and may be part of the difficulty..

Ed
profile picture

Eugene

#2
Hi Ed,

You're one step from success, and that's right - VS2010 is part of the difficulty:

FAQ > I created an indicator library, but it doesn't show up in Wealth-Lab 6

Select .NET 2.0 or .NET 3.5 as Target Framework in the assembly properties in VS2010, confirm, rebuild the solution, and the library will show up next time WL6 is started.
profile picture

Gostling

#3
Eugene that worked like a champ !!!

Does it mater which .Net I choose ? some facts
profile picture

Eugene

#4
The target platform is up to you, but as of the current Wealth-Lab version (6.3) it should be lower than 4.0. Otherwise the choice is entirely up to your requirements.
profile picture

Eugene

#5
P.S. If 2.0 vs 3.5 doesn't ring a bell, then set 2.0 and forget it for now - until you start using C# 3.0 (and higher) features.
profile picture

Gostling

#6
Sorry my note got interupted, by a lighting bolt in colorado that destroyed my UPS seconds ago!!

so one more detail to resolve...I do not get any text next to the Icon that replaces a file folder in the strategies open diaglog box... Is this a sign of a cancer or easy to fix.

I did not know what to do in the strategy helper for these functions either ?? is there a ref doc for helper stuff

//public List<StrategyParameter> Parameters { get; }
//public virtual string URL { get; }

...Ed
profile picture

Eugene

#7
My understanding is that your strategy library is visible but empty. There are no Strategies yet, so there's nothing to open.

As suggested many times on the forums before, download the ActiveTrader Strategy library from the Wiki (authentication required). There you'll have a fully functional example showing how to build Strategies, and most questions will be instantly resolved.
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).