Math functions
Author: dankimel
Creation Date: 4/14/2010 8:55 AM
profile picture

dankimel

#1
Where do you find the math functions supported by WealthLab 5.6? In particular I'd like to use the Square Root function, but would like to know also where the general reference to math functions is found.
profile picture

Eugene

#2
In MSDN, for example. It's C#, so Wealth-Lab 5.6 supports whatever math function the .NET framework supports.

An equivalent WealthScript function can't be found.
profile picture

Eugene

#3
P.S. By chance, if you're looking to apply square root to a DataSeries, then Sqrt in Community.Indicators can be used for that.
profile picture

dankimel

#4
OK. I looked up C# and saw Sqrt is the function for Square Root. I'm using the snippet of code
" double priority2 = limitMultiplier*Sqrt((1.0 - (Vix0-external.Close[bar])/Vix0));" to take volatility into account in a parameter. WL 5.6 gives me the error CS0103: The name "Sqrt" does not exist in the present context.
profile picture

Eugene

#5
Incorrect syntax. Look up Math.Sqrt in MSDN if you're planning to use it.
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).