Navigation: Realtest Script Language > Syntax Element Details >

CorrelMaxSym

 

 

 

 

Category

Multi-Bar Functions

Description

Symbol of stock with highest correlation to the current stock

Syntax

CorrelMax(filter, expr, count, spearman {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)

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 SymNum to refer to symbol with Extern.

See also Correl, Spearman, CorrelAvg, CorrelMed, CorrelMin, CorrelMinSym, CorrelMax

 

 

 

Copyright © 2020-2024 Systematic Solutions, LLC