|
Category
Multi-Bar Functions
Description
Symbol of stock with lowest correlation to the current stock
Syntax
CorrelMin(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
CorrelMinSym(InDJI, ROC(C,1), 20) would return the symbol of the DJIA constituent with the lowest 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, CorrelMax, CorrelMaxSym
Example
LeastCorr: CorrelMinSym(1, ROC(C, 1), 20)
Returns a symbol value; use with SymRef and Extern to reference that stock's data.
|