Navigation: Realtest Script Language > Syntax Element Details >

CorrMinSym

 

 

 

 

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

 

 

 

Copyright © 2020-2024 Systematic Solutions, LLC