I have been trying to calculate the average of double values stored in a List. I understand that to be able to do this I should be using System.Linq. Do I need to check one of the .Net references to be able to do this ? If so, which reference do I need to check?
Size:
Color:
LINQ is a C# 3.0 feature whereas Wealth-Lab's built-in Editor version supports C# 2.0. The thing is, our Editor component right now is outdated. Even if you added that reference to System.Data.Linq.dll, lambda expressions won't be interpreted by the Editor. Please create a new support ticket to request this important update.
Workaround: if you need to write LINQ queries, you can freely do it in a Strategy library (Indicator library, or any other compiled addon for that purpose) using external C# IDE like SharpDevelop or Visual Studio, after including a reference to System.Linq.
p.s. For your calculation question, I suggest you start a new topic and we'll sort it out using C# 2.0.
Size:
Color:
Note: even though the upcoming Wealth-Lab 6.4 is based on .NET 4.0, the built-in Strategy editor still only supports C# 2.0 features and to utilize new language features like LINQ, Parallel, anonymous classes etc. one will still have to resort to compiled Strategy libraries (DLLs). Hopefully, until at least version 6.5 - if Fidelity agrees to fix this in 6.5.
Size:
Color:
The Editor won't support the Intellisense for these .NET 4.0 features in 6.4, but it shouldn't be a problem to utilize them without Intellisense. Is this not your experience Eugene?
Size:
Color:
Supporting Intellisense is a separate question, Robert.
Scripts will not be able to utilize .NET 3.0/4.0 features because this code won't compile in the Strategy Editor. But compiled Strategy libraries are fine in this sense - before 6.4, they were limited by .NET 3.5 as target platform choice.
Size:
Color:
Size:
Color:
Size:
Color:
A forum search goes a long way! :) Glad you got it solved yourself.
Size:
Color: