Category
Multi-Bar Functions
Description
Symbol of stock with highest correlation to the current stock
Syntax
CorrelMax(filter, expr, count, spearman {0}, log {0})
Parameters
filter - stock filter formula
expr - value to correlate
count - lookback period
spearman {0} - use Spearman's Rank Correlation method (default is to use Pearson's Correlation)
log {0} - log the individual correlations when the formula is evaluated
Notes
CorrelMaxSym(InDJI, ROC(C,1), 20) would return the symbol of the DJIA constituent with the highest 20-bar correlation to the current stock.
The symbol is returned as both a number and a string. Use SymRef to refer to symbol with Extern.
See also Correl, Spearman, CorrelAvg, CorrelMed, CorrelMin, CorrelMinSym, CorrelMax
|