Referencing Visualizers.MS123 properly
Author: sedelstein
Creation Date: 4/10/2014 8:30 AM
profile picture

sedelstein

#1
I am trying to debug a strategy using Visual Studio Express

I am getting the error

The type or namespace name 'Visualizers' could not be found (are you missing a using directive or an assembly reference?)

Visual Studio indicates the problem is with a call to Visualizers.MS123

I have added references in the project to

WealthLab
WealthLab.Components.Community
WealthLab.Indicators
WealthLab.Indicators.Community
WealthLab.Visualizers
WealthLab.Visualizers.Extensions
WealthLab.Visualizers.Extra
WealthLab.Visualizers.MS123
WealthLab.Visualizers.MS123.Helper


Am I missing another reference? I'm unable to find it.

Thanks

p.s.

I just added using WealthLab.Visualizers.MS123.Helper;
which makes the other errors disappear but then get the error message

The type or namespace name 'Helper' does not exist in the namespace 'WealthLab.Visualizers.MS123' (are you missing an assembly reference?)

profile picture

praktikus_wl

#2
Hello sedelstein,

As I have no idea what version of Visual Studio Express you're running, allow me to point you here: http://www2.wealth-lab.com/WL5Wiki/kbDebugExpress.ashx

I hope this may help.
profile picture

Eugene

#3
Steve,

Are you sure you're not confusing "adding a reference" with "adding a using clause"? The difference is outside the scope of this forum and can be found in any Visual Studio 101 book/resource.

Having said that, I wonder how on earth did the call to Visualizers.MS123 appear in your Wealth-Lab Strategy? This does not make any sense to me as:

1) visualizers are processed after a Strategy has already finished executing
2) their programmatic usage in Strategies is unsupported
profile picture

sedelstein

#4
Eugene

I'm getting some statistics out of the Visualizers.MS123 PerformanceEngine

Got it. - Unsupported. I'll figure a way around it
profile picture

Eugene

#5
Got it. Anyway, you can safely delete the offending "using" clause:

using WealthLab.Visualizers.MS123.Helper;

Because adding a reference to Helper doesn't bring the "using" directive in this case. The code should compile then.
profile picture

sedelstein

#6
I'm only responding because
QUOTE:
Because adding a reference to Helper doesn't bring the "using" directive in this case. The code should compile then.


If you don't care to respond, I'll understand.


Here is some code lifted straight from the Wiki on working with the Equity Curve with the added line to get a Performance Engine.

It compiles in WL but not in Visual Studio 2012
I have all the references listed above. I took out the Helper

The same error appears


The type or namespace name 'Visualizers' could not be found (are you missing a using directive or an assembly reference?)

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

Eugene

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

sedelstein

#8
Thank you Eugene. It compiled this time.

I really do appreciate the help (esp. in light of the unsupported calls)

Now that I'm using visual studio to debug, I hope to have fewer new topics posted ;->)

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).