How to add reference to namespaces Indicators and LineStyle in Visual Studio?
Author: akuzn
Creation Date: 8/11/2012 11:02 AM
profile picture

akuzn

#1
Seems i added all of *.dll's in WLB directory, but still have
error message in Visual Studio: namespace or using namespace missed.
Cant understand what i missed. Where are placed these dll's?

Following code gives errors:
...StdDev.Series(Delta, ma_period, WealthLab.Indicators.StdDevCalculation.Sample);//
...ws.PlotSeries(_Pane, _Ratio, Color.Navy, WealthLab.LineStyle.Solid, 2);
profile picture

Eugene

#2
Missing references to WealthLab.Indicators.dll and WealthLab.dll, respectively.
profile picture

akuzn

#3
Certainly there are added through menu by browsing main wealth directory.
and in strategy code there are
using WealthLab;
using WealthLab.Indicators;
No problems with these namespaces declaration.
but Compilator unerlines only:
StdDev.Series(Delta, ma_period, WealthLab.Indicators.StdDevCalculation.Sample);//
...ws.PlotSeries(_Pane, _Ratio, Color.Navy, WealthLab.LineStyle.Solid, 2);

Looks strange but cant get what i ve missed.
profile picture

Eugene

#4
Can you post the complete code?
profile picture

Eugene

#5
And I would appreciate if you take the trouble to post the missing error message.
profile picture

akuzn

#6
I use russian version of studio ..
i ll try to reinstall english version or may be there is possibility to change system language so i could give correct error message.
profile picture

akuzn

#7
Seems i resolved this problem.
Problem was of using namespace inside another....Mistake of direct copying of strategy code.
Thanks for idea where to check
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).