Print Page  
SCREENER ONLY
ShowCorrel(period , samples)
Full Description

This function generates correlation coefficient matrix in the screener report of all the stocks that pass the criteria (max 500). The column headers for the matrix are generated from the tickers. Only one ShowCorrel function can be present in the screening rules.

Parameters

period: number of bars used for calculating returns
samples: number of samples

Examples

Show the correlation matrix for 1 day returns over 3 months for the 4 largest companies in the industry "Delivery and Logistics Services". Enter the following rules in the screener:

Industry=DELIVERY and FOrder("MktCap",#Industry,#Desc) <= 4
ShowCorrel(1,62)

Run the screen and set the report to be "Screen Factors". The Report will look something like this:

TickerNameMktCapr CHRWr EXPDr FDXr UPS
CHRWC.H. Robinson Worldwide Inc.10,643.210.620.580.42
EXPDExpeditors Intl of Washington8,842.250.6210.660.52
FDXFedEx Corp.49,996.240.580.6610.7
UPSUnited Parcel Service Inc92,425.320.420.520.71