| TDIInstrument | R Documentation | 
Instrument is an abstract class for (tradeable) market instrument(s). The class provides generic methods and defines the instrument data structure.
The instrument class and its generic methods are to be used by calling packages. The class is abstract and should be implemented for each API.
TDI::baseTDI -> TDI::TDIResult -> TDIInstrument
sourceIdentifier for the data source.
symbolUnique identification symbol.
typeInstrument type classification.
nameName for the instrument.
exchangeMarket for the instrument.
sectorMain sector of the business.
industryMain industry of the business.
countryCountry of registration.
quoteList with latest price data.
keyDataKey data object.
annualCashFlowAnnual cash flow data.
quarterlyCashFlowQuarterly cash flow data.
seriesXts time series with (historical) data.
setQuote()Set the latest quote for the instrument.
TDIInstrument$setQuote(Open, High, Low, Close, Volume)
OpenLatest open price.
HighLatest high price.
LowLatest low price.
CloseLatest close price.
VolumeVolume traded.
The object itself.
setSeries()Set series or add additional column(s) to the existing data. In case the input is a data-frame it is converted to 'xts'.
TDIInstrument$setSeries(x)
xXts time series with (historical) data.
The object itself.
getSession()Retrieve the trading session data for the input date plus 'n' periods.
TDIInstrument$getSession(date, n = 0)
dateInput date-time.
nOptional lag number of sessions.
Requested session data.
getReturn()Return the *returns* calculated from the 'Close' price(s).
TDIInstrument$getReturn()
Instrument returns time series.
getWealthIndex()Return the *wealth index* calculated from the returns.
TDIInstrument$getWealthIndex()
Instrument returns time series.
TechnicalAnalysis()Execute the specified technical analysis calculations.
TDIInstrument$TechnicalAnalysis(ta = NULL)
taTechnical analysis indicator object.
The object itself.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.