Breakpoint in WLP
Author: sarokhatch
Creation Date: 7/5/2013 1:02 PM
profile picture

sarokhatch

#1
I am new to WLP. How do I place a control break in my code. In visual studio you simply click on the left side of the row and it places a red circle which means once the row is hit in the debugger it will stop there.
Thanks
Saro
profile picture

Eugene

#2
Check out this FAQ: Where is the integrated debugger? How do I debug my strategy in Wealth-Lab 6? In short, to set breakpoints you will have to use the familiar VS debugger - and the FAQ points at an illustrated step by step instruction.
profile picture

sarokhatch

#3
Thank you. I currently have Visual studio .NET 4.0. Do I need to get 4.5?
profile picture

Eugene

#4
No, there's no need in VS 2012 and/or .NET 4.5. Having VS 2010 and .NET 4.0 is equally good.
profile picture

sarokhatch

#5
Thanks,
What does this mean:
QUOTE:
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 Pro. Implement the properties in the code of your helper class.


I am creating a brand new strategy from code. I simply place "buy at market". Is that considered my required property? I am a little lost here. I thought I would create a reference to wealth lab, create a project and cut and paste the code there an execute. There are way too many steps here. Do you have a sample code you can attach? It is easier to follow a sample strategy and code than to understand the steps here.

Please keep in mind I am not new to programming at all just new to wealth lab.

Thanks


profile picture

Eugene

#6
QUOTE:
There are way too many steps here.

Agreed, but you'll see that it's really not complex. In addition to pasting the strategy's C# code, you just need to provide descriptional stuff for your compiled strategy to appear in WLP - like strategy name, Guid, author name, creation date, etc. For that purpose you're implementing an interface called StrategyHelper.

QUOTE:
Do you have a sample code you can attach?

Sure thing. For some of us programmers, it's sometimes easier to start playing with a code sample than to follow a step by step guide. ;) After logging in to the Wiki with your authorized Wiki account, download the attachment containing a bunch of working strategies:

Home - Strategies.ActiveTrader
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).