signals
Retrieve signal information
Syntax
Description
specifies the type of security to retrieve.d
= signals(c
,code
,universeid
,startdate
,enddate
,identifier
)
specifies the data format for the returned signal information.d
= signals(c
,code
,universeid
,startdate
,enddate
,identifier
,datatype
)
specifies retrieval of monthly data.d
= signals(c
,code
,universeid
,startdate
,enddate
,identifier
,datatype
,monthlydata
)
Examples
Retrieve Signal Information
Using an IHS Markit connection, retrieve signal information using a factor and date range within a specified universe.
Create an IHS Markit connection using your user name and password. c
is an
ihsmarkitrs
object.
username = 'ABCDEF'; password = 'ABC123'; c = ihsmarkitrs(username,password);
Retrieve signal information for the last 10 days using the IHS Markit connection. Specify the ABR
factor code and
QSG World
universe. ABR
is a sample factor code
and QSG World
is a sample universe. To retrieve signal information
for your code and universe combination, substitute the factor code in
code
and universe in universeid
. The
d
workspace variable is a table that contains signal information
and the date
and data
variables.
code = 'ABR'; universeid = 'QSG World'; startdate = datetime('today')-10; enddate = datetime('today'); d = signals(c,code,universeid,startdate,enddate);
Access the first few rows of signal information for the first day in the date range
by using the data
variable.
data = d.data{1}; head(data)
ans = 8×2 table ticker value ______ _____ 'VIRT' 1 'SEDG' 1 'CRTO' 1 'BZUN' 1 'FNGN' 1 'CMG' 1 'INGN' 1 'ADAP' 1
The variables of the resulting table are ticker
and
value
. The ticker
variable contains the ticker
security identifiers. The value
variable contains the signal
information for the corresponding security.
Retrieve Signal Information for SEDOL Security Type
Using an IHS Markit connection, retrieve signal information using a factor and date range within a specified universe. Specify the SEDOL security type.
Create an IHS Markit connection using your user name and password. c
is an
ihsmarkitrs
object.
username = 'ABCDEF'; password = 'ABC123'; c = ihsmarkitrs(username,password);
Retrieve signal information for the last 10 days using the IHS Markit connection. Specify the ABR
factor code and
QSG World
universe. ABR
is a sample factor code
and QSG World
is a sample universe. To retrieve signal information
for your code and universe combination, substitute the factor code in
code
and universe in universeid
. Also, specify
the SEDOL security type. d
is a table that contains signal
information and the date
and data
variables.
code = 'ABR'; universeid = 'QSG World'; startdate = datetime('today')-10; enddate = datetime('today'); identifier = 'sedol'; d = signals(c,code,universeid,startdate,enddate,identifier);
Access the first few rows of signal information for the first day in the date range
by using the data
variable.
data = d.data{1}; head(data)
ans = 8×2 table sedol value ________ _____ 'BWTVWD' 1 'BWC52Q' 1 'BFPMB2' 1 'BY2ZJ6' 1 'B65V2X' 1 'B0X7DZ' 1 'BJSVLL' 1 'BWY4XV' 1
The variables of the resulting table are sedol
and
value
. The sedol
variable contains the SEDOL
security identifiers. The value
variable contains the signal
information for the corresponding security.
Retrieve Signal Information for Z-Score Data Format
Using an IHS Markit connection, retrieve signal information using a factor and date range within a specified universe. Specify the SEDOL security type and z-score data format.
Create an IHS Markit connection using your user name and password. c
is an
ihsmarkitrs
object.
username = 'ABCDEF'; password = 'ABC123'; c = ihsmarkitrs(username,password);
Retrieve signal information for the last 10 days using the IHS Markit connection. Specify the ABR
factor code and
QSG World
universe. ABR
is a sample factor code
and QSG World
is a sample universe. To retrieve signal information
for your code and universe combination, substitute the factor code in
code
and universe in universeid
. Also, specify
the SEDOL security type and z-score data format. d
is a table that
contains signal information and the date
and data
variables.
code = 'ABR'; universeid = 'QSG World'; startdate = datetime('today')-10; enddate = datetime('today'); identifier = 'sedol'; datatype = 'zscore'; d = signals(c,code,universeid,startdate,enddate,identifier,datatype);
Access the first few rows of signal information for the first day in the date range
by using the data
variable.
data = d.data{1}; head(data)
ans = 8×2 table sedol value ________ ________ 'B44WZD' 0.63461 'B4MG4Z' 0.43807 '281355' -3.3183 'BF4VWH' 0.94079 'B92SR7' 0.80995 'BWY4XV' 3.1591 'B1VZ43' -0.25296 '236542' -0.77368
The variables of the resulting table are sedol
and
value
. The sedol
variable contains the SEDOL
security identifiers. The value
variable contains the signal
information for the corresponding security as a z-score.
Retrieve Monthly Signal Information for Specific Data Format
Using an IHS Markit connection, retrieve monthly signal information using a factor and date range within a specified universe. Specify the SEDOL security type and z-score data format.
Create an IHS Markit connection using your user name and password. c
is an
ihsmarkitrs
object.
username = 'ABCDEF'; password = 'ABC123'; c = ihsmarkitrs(username,password);
Retrieve signal information for the last 3 months using the IHS Markit connection. Specify the ABR
factor code and
QSG World
universe. ABR
is a sample factor code
and QSG World
is a sample universe. To retrieve signal information
for your code and universe combination, substitute the factor code in
code
and universe in universeid
. Also, specify
the SEDOL security type and z-score data format. d
is a table that
contains signal information and the date
and data
variables.
code = 'ABR'; universeid = 'QSG World'; startdate = datetime('today')-90; enddate = datetime('today'); identifier = 'sedol'; datatype = 'zscore'; monthlydata = 'true'; d = signals(c,code,universeid,startdate,enddate, ... identifier,datatype,monthlydata);
Access the first few rows of signal information for the first month in the date
range by using the data
variable.
data = d.data{1}; head(data)
ans = 8×2 table sedol value ________ ________ 'B44WZD' 0.44178 'B4MG4Z' -1.2075 '281355' 0.43517 'BF4VWH' 0.91456 'B92SR7' 2.065 '256652' 0.49538 'B1VZ43' -0.26471 'BFRTDG' -0.69078
The variables of the resulting table are sedol
and
value
. The sedol
variable contains the SEDOL
security identifiers. The value
variable contains the signal
information for the corresponding security as a z-score.
Input Arguments
c
— IHS Markit connection
ihsmarkitrs
object
IHS Markit connection, specified as an ihsmarkitrs
object.
code
— Factor code
character vector | string scalar
Factor code, specified as a character vector or string scalar.
Example: "ABR"
Data Types: char
| string
universeid
— Universe name
character vector | string scalar
Universe name, specified as a character vector or string scalar.
Example: 'US Total Cap'
Data Types: char
| string
startdate
— Start date
datetime
array | numeric scalar | character vector | string scalar
Start date for a data request, specified as a datetime
array, numeric
scalar, character vector, or string scalar.
Example: "2017-01-01"
Data Types: double
| char
| string
| datetime
enddate
— End date
datetime
array | numeric scalar | character vector | string scalar
End date for a data request, specified as a datetime
array, numeric scalar,
character vector, or string scalar.
Example: "2017-12-31"
Data Types: double
| char
| string
| datetime
identifier
— Security type
"ticker"
(default) | character vector | string scalar | cell array of character vectors | string array
Security type to retrieve, specified as one or more of these values:
'ticker'
, 'cusip'
, or
'sedol'
. You can specify these values as a character vector, string
scalar, cell array of character vectors, or string array.
datatype
— Data format
"percentile"
(default) | character vector | string scalar
Data format, specified as one of these values.
Data Format Value | Description | Calculation |
---|---|---|
| Percentile rank (from | Rank the securities in the universe into percentiles, by using the
factor value, in ascending or descending order based on the definition. The
|
| Raw value of the factor | The numeric output of the factor calculation. |
| Ordinal rank (from | Rank the securities in the universe in ordinal order, by using the factor value, in ascending or descending order based on the definition. |
| Z-score of the factor | Determine the mean and standard deviation of all factor values in the universe on the specified date. Then, subtract the mean from the factor value of the security and divide the result by the standard deviation. |
You can specify each value as a character vector or string scalar.
monthlydata
— Monthly indicator
"false"
(default) | character vector | string scalar
Monthly indicator, specified as the value "true"
or
"false"
. When the monthlydata
input argument is
"true"
, the signals
function returns monthly
data. Otherwise, the signals
function returns daily data.
Output Arguments
d
— Signal information
table
Signal information, returned as a table with the date
and
data
variables. The date
variable contains each
date in the specified date range. If you specify monthly data using the
monthlydata
input argument, then the date
variable contains one row for each month. The data
variable contains
a table of data for each corresponding date. To access the data for the first day in the
date range, use dot notation, for example: d.data{1}
.
Version History
Introduced in R2018b
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)