Navigation: Realtest Script Language > Syntax Element Details >

CorrelMed

 

 

 

 

Category

Multi-Bar Functions

Description

Median correlation of a stock to a group of stocks

Syntax

CorrelMed(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

CorrelMed(InDJI, ROC(C,1), 20) would return the median 20-bar correlation of each DJIA constituent to the current stock.

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

 

 

 

Copyright © 2020-2024 Systematic Solutions, LLC