Correlation: Ambiguous Reference between TASCIndicators and Community Indicators
Author: Darrell__
Creation Date: 7/1/2017 6:40 PM
profile picture

Darrell__

#1
I just updated the Indicator Extensions, i.e "TASC Magazine Indicators," and I immediately received the following error in one of my existing strategies, i.e.

'Correlation' is an ambiguous reference between 'TASCIndicators.Correlation' and "Community.Indicators.Correlation."

I can get the strategy to compile if I change the Correlation.Series reference to either 'TASCIndicators.Correlation' or "Community.Indicators.Correlation"; however, I'd rather not have to do so with all my existing strategies. Since the new TASC indicator menu doesn't even list "Correlation" as an available indicator, would it be possible to either remove the ambiguity or rename the 'Correlation' in the TASC Indicators set?

Thanks...
profile picture

Eugene

#2
It's required for "RegressionDivergence" to work. Renaming it in TASCIndicators is tedious and not foolproof. Should we be on duty to include a new TASC indicator that depends on Correlation in the future, I foresee a good chance of overlooking the renamed version and copying the code over from C.Indicators under the same name. It'd be quite suboptimal to see this issue raised again.

It would be our fault if Correlation was referred by either library ambiguously (like the case you discovered earlier this year). However, this time it's not: you see that the namespaces for Correlation are explicit. Your code gives compiler an ambiguous instruction since it uses both Community.Indicators and TASCIndicators together in a Strategy but, like you correctly suggested, it doesn't reference the particular type of Correlation indicator.

IMHO, the easiest solution is to run a Strategy Code search for "Correlation" across your strategies and if they use the two libraries, make them point at Community.Indicators.Correlation.
profile picture

Darrell__

#3
Eugene,

O.K. Thank you for the prompt response. Since I've only used the Community Indicators version of "Correlation" in my strategies, I will do the search and replace option. Also, is there a source, or change, document of what indicators were added, deleted, or changed with the most recent update?

Thanks again...
profile picture

Eugene

#4
Darrell,
QUOTE:
Also, is there a source, or change, document of what indicators were added, deleted, or changed with the most recent update?

Of course. Every Extension has a change log accessible from the Extension Manager / website, Community Indicators is no exception.
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).