EStdDev Indicator Compile Error
Author: innertrader
Creation Date: 2/12/2017 8:08 PM
profile picture

innertrader

#1
I am trying to use EStdDev function but get a compile error "The name 'EStdDev' does not exist in the current context." After reading http://www2.wealth-lab.com/WL5Wiki/EStdDev.ashx?HL=volatility I couldn't see what was wrong (StdDev is working fine.)

After some research I am wondering if because it is a TASC indicator it needs to be specially downloaded? (Not mentioned in page linked above.)

If this is the case it appears I require a separate login from the one I am using on this support site to gain access to the download? Is that correct? I went to the page http://www2.wealth-lab.com/WL5Wiki/Register.aspx that appears to be the page to do this, but it would not accept the passwords I tried. Is there a rule for a minimally well-formed password for this form?

I find the process quite confusing and I am not sure I am proceeding correctly.
profile picture

Eugene

#2
QUOTE:
I am trying to use EStdDev function but get a compile error "The name 'EStdDev' does not exist in the current context."

Our indicator libraries are updated frequently. EStdDev is a new indicator, released a month ago. Your outdated version of TASCIndicators does not contain it. If you update the library using the Extension Manager and restart WLP, the EStdDev should appear.

On how to install/uninstall/update Wealth-Lab extensions, please review this illustrated tutorial and/or check out the Wealth-Lab User Guide > Extension Manager.

QUOTE:
If this is the case it appears I require a separate login from the one I am using on this support site to gain access to the download?

The Wiki is not used for extension downloads or updates. It only contains their source code (and Community.Rules as we cannot distribute it otherwise).
profile picture

innertrader

#3
I followed the procedure outlined and it appeared to successfully d/l new TASC indicators including EStdDev (how can I confirm?). Still getting a compile error
QUOTE:
The name 'EStdDev' does not exist in the current context.
.

Here's the relevant code:

CODE:
Please log in to see this code.


Running WL Pro V. 6.9.16.0 64-bit
profile picture

Eugene

#4
You can confirm by dragging and dropping the indicator on the chart after restarting WLP, but the problem here is that you forgot to add a using TASCIndicators clause.

P.S. Additionally, this doesn't make sense:
CODE:
Please log in to see this code.
profile picture

innertrader

#5
I didn't forget to add TASCindicators clause; I didn't know I had to do that. That fixed the compile error. Thanks.

BTW, the EStdDev documentation http://www2.wealth-lab.com/WL5Wiki/EStdDev.ashx does not seem to explicitly mention it is a TASC indicator. Should it?

Regarding your code upgrade recommendation, I am wanting to capture a daily % price change series with my formula. I wasn't sure how to access *yesterday's* price. I tried finding documentation on how >> works but couldn't. Does mine not work or is it just not elegant? Can you point me to >> documentation on how to use this function?
profile picture

Eugene

#6
QUOTE:
Should it?

Good question and I'm surprised that nobody has asked it before. It is expected by C# programmers that methods and classes do not appear out of nowhere and their source libraries are to be 'hooked up' with a using statement. While it's not a problem for Standard Indicators that contains the most essential indicators as its using clause is added by Wealth-Lab automatically, TASCIndicators is considered a 3rd party library. A reminder on each Wiki page documenting a TASC indicator might help but by now it would be quite an effort to add one to the 100 pages.

While looking up the Wiki or the built-in Indicators window to determine which library the indicator belongs to would be an evident suggestion, here's hopefully a more elegant workaround. To make sure that every new strategy is TASCIndicators ready, you could simply edit the blank strategy's template code to contain the using clause and save it by clicking Edit > Set as Default Template Code:
CODE:
Please log in to see this code.


QUOTE:
I tried finding documentation on how >> works but couldn't.

You can find it in the DataSeries object entry in the QuickRef, or DataSeries > Series Operators in the WealthScript Programming Guide.
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).