Sqrt function
Author: andriuking
Creation Date: 7/2/2013 5:43 PM
profile picture

andriuking

#1
Hello.

I´m triying to apply a sqrt transformation to a dataseries as says the link:

http://www2.wealth-lab.com/WL5Wiki/Sqrt.ashx

When I use Sqrt(ds), where ds is a dataseries, WL not recognise the Sqrt function. If I use Math.Sqrt, parameter must be double and not dataseries, so it´s not valid.

¿How can I apply a sqrt transformation to dataseries?

Thanks!
profile picture

Eugene

#2
When WL doesn't recognize a function, the compiler leaves a specific message and that should give a hint:

Errors | Strategy > Compiler error messages

Most likely, you forgot to add a using directive, like

CODE:
Please log in to see this code.


I added an example to the Wiki page.
profile picture

andriuking

#3
Thanks Eugene and great example.

You are right, I forgot it.

Bit when I compile WL says me than can´t find the namespace Community, why? It says than perhaps there are not references.

How can I solve it?

Thanks!
profile picture

Eugene

#4
Before using, you should install Community Indicators and restart WL.

P.S. What it says is "Type or namespace name 'Community' could not be found". In the list of forum categories (or inside any forum category), there's a text box that does quick search (search as you type). After typing in the key word "found", you shall find some answers:

Type or namespace name 'Community' could not be found
Community.Components namespace cannot be found
Type or namespace name could not be found

Easy, right?
profile picture

andriuking

#5
Thanks Eugene.

I will use the search you said next time.

Regards.
profile picture

Eugene

#6
You're welcome.
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).