Writing Algorithms

API Reference

Introduction

QCAlgorithm

class QuantConnect.Algorithm.QCAlgorithm[source]

QC Algorithm Base Class - Handle the basic requirements of a trading algorithm, allowing user to focus on event methods. The QCAlgorithm class implements Portfolio, Securities, Transactions and Data Subscription Management.

Adding Data

Adding Data

add_cfd(ticker, resolution=None, market=None, fill_forward=True, leverage=0.0)[source]

Creates and adds a new Cfd security to the algorithm

Parameters:
  • ticker (str) — The currency pair
  • resolution (Resolution, optional)
  • market (str, optional)
  • fill_forward (bool, optional)
  • leverage (float, optional)
Returns:

The new Cfd security

Return type:

Cfd

add_crypto(ticker, resolution=None, market=None, fill_forward=True, leverage=0.0)[source]

Creates and adds a new Crypto security to the algorithm

Parameters:
  • ticker (str) — The currency pair
  • resolution (Resolution, optional)
  • market (str, optional)
  • fill_forward (bool, optional)
  • leverage (float, optional)
Returns:

The new Crypto security

Return type:

Crypto

add_crypto_future(ticker, resolution=None, market=None, fill_forward=True, leverage=0.0)[source]

Creates and adds a new CryptoFuture security to the algorithm

Parameters:
  • ticker (str) — The currency pair
  • resolution (Resolution, optional)
  • market (str, optional)
  • fill_forward (bool, optional)
  • leverage (float, optional)
Returns:

The new CryptoFuture security

Return type:

CryptoFuture

add_data(type, ticker, properties, exchange_hours, resolution, fill_forward, leverage=1.0)[source]

AddDataT a new user defined data source, requiring only the minimum config options. The data is added with a default time zone of NewYork (Eastern Daylight Savings Time)

Parameters:
  • type (PyObject) — Data source type
  • ticker (str) — KeyTicker for data
  • properties (SymbolProperties) — The properties of this new custom data
  • exchange_hours (SecurityExchangeHours) — The Exchange hours of this symbol
  • resolution (Optional[Resolution]) — Resolution of the Data Required
  • fill_forward (bool) — When no data available on a tradebar, return the last data that was generated
  • leverage (float, optional) — Custom leverage per security
Returns:

The new Security

Return type:

Security

add_data(type, ticker, resolution, time_zone, fill_forward, leverage=1.0)[source]

AddDataT a new user defined data source, requiring only the minimum config options. The data is added with a default time zone of NewYork (Eastern Daylight Savings Time)

Parameters:
  • type (PyObject) — Data source type
  • ticker (str) — KeyTicker for data
  • resolution (Optional[Resolution]) — Resolution of the Data Required
  • time_zone (datetimeZone) — Specifies the time zone of the raw data
  • fill_forward (bool) — When no data available on a tradebar, return the last data that was generated
  • leverage (float, optional) — Custom leverage per security
Returns:

The new Security

Return type:

Security

add_data(type, underlying, resolution, time_zone, fill_forward, leverage=1.0)[source]

AddDataT a new user defined data source, requiring only the minimum config options. The data is added with a default time zone of NewYork (Eastern Daylight Savings Time)

Parameters:
  • type (PyObject) — Data source type
  • underlying (Symbol) — The underlying symbol for the custom data
  • resolution (Optional[Resolution]) — Resolution of the Data Required
  • time_zone (datetimeZone) — Specifies the time zone of the raw data
  • fill_forward (bool) — When no data available on a tradebar, return the last data that was generated
  • leverage (float, optional) — Custom leverage per security
Returns:

The new Security

Return type:

Security

add_data(data_type, ticker, resolution, time_zone, fill_forward, leverage=1.0)[source]

AddDataT a new user defined data source, requiring only the minimum config options. The data is added with a default time zone of NewYork (Eastern Daylight Savings Time)

Parameters:
  • data_type (Type) — Data source type
  • ticker (str) — KeyTicker for data
  • resolution (Optional[Resolution]) — Resolution of the Data Required
  • time_zone (datetimeZone) — Specifies the time zone of the raw data
  • fill_forward (bool) — When no data available on a tradebar, return the last data that was generated
  • leverage (float, optional) — Custom leverage per security
Returns:

The new Security

Return type:

Security

add_data(data_type, underlying, resolution, time_zone, fill_forward, leverage=1.0)[source]

AddDataT a new user defined data source, requiring only the minimum config options. The data is added with a default time zone of NewYork (Eastern Daylight Savings Time)

Parameters:
  • data_type (Type) — Data source type
  • underlying (Symbol)
  • resolution (Optional[Resolution]) — Resolution of the Data Required
  • time_zone (datetimeZone) — Specifies the time zone of the raw data
  • fill_forward (bool) — When no data available on a tradebar, return the last data that was generated
  • leverage (float, optional) — Custom leverage per security
Returns:

The new Security

Return type:

Security

add_equity(ticker, resolution=None, market=None, fill_forward=True, leverage=0.0, extended_market_hours=False, data_normalization_mode=None)[source]

Creates and adds a new Equity security to the algorithm

Parameters:
  • ticker (str) — The equity ticker symbol
  • resolution (Resolution, optional)
  • market (str, optional)
  • fill_forward (bool, optional)
  • leverage (float, optional)
  • extended_market_hours (bool, optional)
  • data_normalization_mode (DataNormalizationMode, optional) — The price scaling mode to use for the equity
Returns:

The new Equity security

Return type:

Equity

add_forex(ticker, resolution=None, market=None, fill_forward=True, leverage=0.0)[source]

Creates and adds a new Forex security to the algorithm

Parameters:
  • ticker (str) — The currency pair
  • resolution (Resolution, optional)
  • market (str, optional)
  • fill_forward (bool, optional)
  • leverage (float, optional)
Returns:

The new Forex security

Return type:

Forex

add_future(ticker, resolution=None, market=None, fill_forward=True, leverage=0.0, extended_market_hours=False, data_mapping_mode=None, data_normalization_mode=None, contract_depth_offset=0)[source]

Creates and adds a new Future security to the algorithm

Parameters:
  • ticker (str) — The future ticker
  • resolution (Resolution, optional)
  • market (str, optional)
  • fill_forward (bool, optional)
  • leverage (float, optional)
  • extended_market_hours (bool, optional) — Use extended market hours data
  • data_mapping_mode (DataMappingMode, optional) — The contract mapping mode to use for the continuous future contract
  • data_normalization_mode (DataNormalizationMode, optional) — The price scaling mode to use for the continuous future contract
  • contract_depth_offset (int, optional) — The continuous future contract desired offset from the current front month. For example, 0 (default) will use the front month, 1 will use the back month contract
Returns:

The new Future security

Return type:

Future

add_future_contract(symbol, resolution=None, fill_forward=True, leverage=0.0, extended_market_hours=False)[source]

Creates and adds a new single Future contract to the algorithm

Parameters:
  • symbol (Symbol) — The futures contract symbol
  • resolution (Resolution, optional)
  • fill_forward (bool, optional)
  • leverage (float, optional)
  • extended_market_hours (bool, optional) — Use extended market hours data
Returns:

The new Future security

Return type:

Future

add_future_option(future_symbol, option_filter)[source]

Creates and adds a new Future Option contract to the algorithm.

Parameters:
  • future_symbol (Symbol) — )
  • option_filter (PyObject) — Filter to apply to option contracts loaded as part of the universe
add_future_option(symbol, option_filter=None)[source]

Creates and adds a new Future Option contract to the algorithm.

Parameters:
  • symbol (Symbol) — )
  • option_filter (Callable[OptionFilterUniverse, OptionFilterUniverse], optional) — Filter to apply to option contracts loaded as part of the universe
add_future_option_contract(symbol, resolution=None, fill_forward=True, leverage=0.0, extended_market_hours=False)[source]

Adds a future option contract to the algorithm.

Parameters:
  • symbol (Symbol) — Option contract Symbol
  • resolution (Resolution, optional) — Resolution of the option contract, i.e. the granularity of the data
  • fill_forward (bool, optional) — If true, this will fill in missing data points with the previous data point
  • leverage (float, optional) — The leverage to apply to the option contract
  • extended_market_hours (bool, optional) — Use extended market hours data
Returns:

Option security

Return type:

Option

add_index(ticker, resolution=None, market=None, fill_forward=True)[source]

Creates and adds index options to the algorithm.

Parameters:
  • ticker (str) — The currency pair
  • resolution (Resolution, optional)
  • market (str, optional)
  • fill_forward (bool, optional)
Returns:

The new Index security

Return type:

Index

add_index_option(ticker, resolution=None, market=usa, fill_forward=True)[source]

Creates and adds index options to the algorithm.

Parameters:
  • ticker (str) — The ticker of the Index Option
  • resolution (Resolution, optional) — Resolution of the index option contracts, i.e. the granularity of the data
  • market (str, optional)
  • fill_forward (bool, optional) — If true, this will fill in missing data points with the previous data point
Returns:

Canonical Option security

Return type:

Option

add_index_option(symbol, target_option, resolution=None, fill_forward=True)[source]

Creates and adds index options to the algorithm.

Parameters:
  • symbol (Symbol)
  • target_option (str) — The target option ticker. This is useful when the option ticker does not match the underlying, e.g. SPX index and the SPXW weekly option. If null is provided will use underlying
  • resolution (Resolution, optional) — Resolution of the index option contracts, i.e. the granularity of the data
  • fill_forward (bool, optional) — If true, this will fill in missing data points with the previous data point
Returns:

Canonical Option security

Return type:

Option

add_index_option_contract(symbol, resolution=None, fill_forward=True)[source]

Adds an index option contract to the algorithm.

Parameters:
  • symbol (Symbol) — Symbol of the index option contract
  • resolution (Resolution, optional) — Resolution of the index option contract, i.e. the granularity of the data
  • fill_forward (bool, optional) — If true, this will fill in missing data points with the previous data point
Returns:

Index Option Contract

Return type:

Option

add_option(underlying, target_option, resolution=None, market=None, fill_forward=True, leverage=0.0)[source]

Creates and adds a new equity Option security to the algorithm

Parameters:
  • underlying (str | Symbol) — Underlying asset Symbol to use as the option's underlying
  • target_option (str) — The target option ticker. This is useful when the option ticker does not match the underlying, e.g. SPX index and the SPXW weekly option. If null is provided will use underlying
  • resolution (Resolution, optional)
  • market (str, optional)
  • fill_forward (bool, optional) — If true, data will be provided to the algorithm every Second, Minute, Hour, or Day, while the asset is open and depending on the Resolution this option was configured to use.
  • leverage (float, optional) — The requested leverage for the
Returns:

The new option security instance

Return type:

Option

add_option_contract(symbol, resolution=None, fill_forward=True, leverage=0.0, extended_market_hours=False)[source]

Creates and adds a new single Option contract to the algorithm

Parameters:
  • symbol (Symbol) — The option contract symbol
  • resolution (Resolution, optional)
  • fill_forward (bool, optional)
  • leverage (float, optional)
  • extended_market_hours (bool, optional) — Use extended market hours data
Returns:

The new Option security

Return type:

Option

add_security(security_type, ticker, resolution, market, fill_forward, leverage, extended_market_hours, data_mapping_mode=None, data_normalization_mode=None)[source]

Add specified data to our data subscriptions. QuantConnect will funnel this data to the handle data routine.

Parameters:
  • security_type (SecurityType) — MarketType Type: Equity, Commodity, Future, FOREX or Crypto
  • ticker (str) — The security ticker, e.g. AAPL
  • resolution (Optional[Resolution]) — Resolution of the MarketType required: MarketData, Second or Minute
  • market (str) — The market the requested security belongs to, such as 'usa' or 'fxcm'
  • fill_forward (bool) — If true, returns the last available data even if none in that timeslice.
  • leverage (float) — leverage for this security
  • extended_market_hours (bool) — Use extended market hours data
  • data_mapping_mode (DataMappingMode, optional) — The contract mapping mode to use for the security
  • data_normalization_mode (DataNormalizationMode, optional) — The price scaling mode to use for the security
Return type:

Security

add_security(symbol, resolution=None, fill_forward=True, leverage=0.0, extended_market_hours=False, data_mapping_mode=None, data_normalization_mode=None, contract_depth_offset=0)[source]

Add specified data to our data subscriptions. QuantConnect will funnel this data to the handle data routine.

Parameters:
  • symbol (Symbol) — The security Symbol
  • resolution (Resolution, optional) — Resolution of the MarketType required: MarketData, Second or Minute
  • fill_forward (bool, optional) — If true, returns the last available data even if none in that timeslice.
  • leverage (float, optional) — leverage for this security
  • extended_market_hours (bool, optional) — Use extended market hours data
  • data_mapping_mode (DataMappingMode, optional) — The contract mapping mode to use for the security
  • data_normalization_mode (DataNormalizationMode, optional) — The price scaling mode to use for the security
  • contract_depth_offset (int, optional) — The continuous contract desired offset from the current front month. For example, 0 (default) will use the front month, 1 will use the back month contract
Returns:

The new Security that was added to the algorithm

Return type:

Security

download(address, headers, user_name, password)[source]

Downloads the requested resource as a String. The resource to download is specified as a String containing the URI.

Parameters:
  • address (str) — A string containing the URI to download
  • headers (PyObject | Dict[str, str]) — Defines header values to add to the request
  • user_name (str) — The user name associated with the credentials
  • password (str) — The password for the user name associated with the credentials
Returns:

The requested resource as a string

Return type:

str

get_last_known_prices(security)[source]

Yields data to warmup a security for all it's subscribed data types

Parameters:
  • security (Security) — object for which to retrieve historical data
Returns:

Securities historical data

Return type:

List[BaseData]

get_last_known_prices(symbol)[source]

Yields data to warmup a security for all it's subscribed data types

Parameters:
  • symbol (Symbol) — The symbol we want to get seed data for
Returns:

Securities historical data

Return type:

List[BaseData]

on_securities_changed(changes)[source]

Event fired each time the we add/remove securities from the data feed

Parameters:
  • changes (SecurityChanges) — Security additionsremovals for this time step
remove_option_contract(symbol)[source]

Removes the security with the specified symbol. This will cancel all open orders and then liquidate any existing holdings

Parameters:
  • symbol (Symbol) — The symbol of the security to be removed
Return type:

bool

remove_security(symbol)[source]

Removes the security with the specified symbol. This will cancel all open orders and then liquidate any existing holdings

Parameters:
  • symbol (Symbol) — The symbol of the security to be removed
Return type:

bool

set_future_chain_provider(future_chain_provider)[source]

Sets the future chain provider, used to get the list of future contracts for an underlying symbol

Parameters:
  • future_chain_provider (IFutureChainProvider) — The future chain provider
set_option_chain_provider(option_chain_provider)[source]

Sets the option chain provider, used to get the list of option contracts for an underlying symbol

Parameters:
  • option_chain_provider (IOptionChainProvider) — The option chain provider
set_security_initializer(security_initializer)[source]

Sets the security initializer, used to initialize/configure securities after creation. The initializer will be applied to all universes and manually added securities.

Parameters:
  • security_initializer (PyObject | Action[Security] | ISecurityInitializer) — The security initializer function or class
symbol(ticker)[source]

Converts the string 'ticker' symbol into a full String) object This requires that the string 'ticker' has been added to the algorithm

Parameters:
  • ticker (str) — The ticker symbol. This should be the ticker symbol as it was added to the algorithm
Returns:

The symbol object mapped to the specified ticker

Return type:

Symbol

ticker(symbol)[source]

For the given symbol will resolve the ticker it used at the current algorithm date

Parameters:
  • symbol (Symbol) — The symbol to get the ticker for
Returns:

The mapped ticker for a symbol

Return type:

str

property future_chain_provider[source]

Gets the future chain provider, used to get the list of future contracts for an underlying symbol

Returns:

Gets the future chain provider, used to get the list of future contracts for an underlying symbol

Return type:

IFutureChainProvider

property option_chain_provider[source]

Gets the option chain provider, used to get the list of option contracts for an underlying symbol

Returns:

Gets the option chain provider, used to get the list of option contracts for an underlying symbol

Return type:

IOptionChainProvider

property security_initializer[source]

Gets an instance that is to be used to initialize newly created securities.

Returns:

Gets an instance that is to be used to initialize newly created securities.

Return type:

ISecurityInitializer

Algorithm Framework

Algorithm Framework

add_alpha(alpha)[source]

Adds a new alpha model

Parameters:
  • alpha (PyObject | IAlphaModel) — Model that generates alpha to add
add_risk_management(risk_management)[source]

Adds a new risk management model

Parameters:
  • risk_management (IRiskManagementModel | PyObject) — Model defining how risk is managed to add
add_universe_selection(universe_selection)[source]

Adds a new universe selection model

Parameters:
  • universe_selection (PyObject | IUniverseSelectionModel) — Model defining universes for the algorithm to add
emit_insights(insights)[source]

Manually emit insights from an algorithm. This is typically invoked before calls to submit orders in algorithms written against QCAlgorithm that have been ported into the algorithm framework.

Parameters:
  • insights (Insight[]) — The array of insights to be emitted
emit_insights(insight)[source]

Manually emit insights from an algorithm. This is typically invoked before calls to submit orders in algorithms written against QCAlgorithm that have been ported into the algorithm framework.

Parameters:
  • insight (Insight) — The insight to be emitted
framework_post_initialize()[source]

Called by setup handlers after Initialize and allows the algorithm a chance to organize the data gather in the Initialize method

get_locked()[source]

Gets whether or not this algorithm has been locked and fully initialized

Return type:

bool

initialize()[source]

Initialise the data and resolution required, as well as the cash and start-end dates for your algorithm. All algorithms must initialized.

on_framework_data(slice)[source]

Used to send data updates to algorithm framework models

Parameters:
  • slice (Slice) — The current data slice
on_framework_securities_changed(changes)[source]

Used to send security changes to algorithm framework models

Parameters:
  • changes (SecurityChanges) — Security additionsremovals for this time step
post_initialize()[source]

Called by setup handlers after Initialize and allows the algorithm a chance to organize the data gather in the Initialize method

set_alpha(alpha)[source]

Sets the alpha model

Parameters:
  • alpha (PyObject | IAlphaModel) — Model that generates alpha
set_execution(execution)[source]

Sets the execution model

Parameters:
  • execution (IExecutionModel | PyObject) — Model defining how to execute trades to reach a portfolio target
set_locked()[source]

Lock the algorithm initialization to avoid user modifiying cash and data stream subscriptions

set_portfolio_construction(portfolio_construction)[source]

Sets the portfolio construction model

Parameters:
  • portfolio_construction (IPortfolioConstructionModel | PyObject) — Model defining how to build a portfolio from insights
set_risk_management(risk_management)[source]

Sets the risk management model

Parameters:
  • risk_management (IRiskManagementModel | PyObject) — Model defining how risk is managed
set_universe_selection(universe_selection)[source]

Sets the universe selection model

Parameters:
  • universe_selection (PyObject | IUniverseSelectionModel) — Model defining universes for the algorithm
property alpha[source]

Gets or sets the alpha model

Returns:

Gets or sets the alpha model

Return type:

IAlphaModel

property execution[source]

Gets or sets the execution model

Returns:

Gets or sets the execution model

Return type:

IExecutionModel

property insights[source]

Gets the insight manager

Returns:

Gets the insight manager

Return type:

InsightManager

property portfolio_construction[source]

Gets or sets the portfolio construction model

Returns:

Gets or sets the portfolio construction model

Return type:

IPortfolioConstructionModel

property risk_management[source]

Gets or sets the risk management model

Returns:

Gets or sets the risk management model

Return type:

IRiskManagementModel

property universe_selection[source]

Gets or sets the universe selection model.

Returns:

Gets or sets the universe selection model.

Return type:

IUniverseSelectionModel

Charting

Charting

add_chart(chart)[source]

Add a Chart object to algorithm collection

Parameters:
  • chart (Chart) — Chart object to add to collection.
add_series(chart, series, series_type, unit=$)[source]

Add a series object for charting. This is useful when initializing charts with series other than type = line. If a series exists in the chart with the same name, then it is replaced.

Parameters:
  • chart (str) — The chart name
  • series (str) — The series name
  • series_type (SeriesType) — The type of series, i.e, Scatter
  • unit (str, optional) — The unit of the y axis, usually $
get_chart_updates(clear_chart_data=False)[source]

Get the chart updates by fetch the recent points added and return for dynamic Charting.

Parameters:
  • clear_chart_data (bool, optional)
Returns:

List of chart updates since the last request

Return type:

List[Chart]

plot(chart, series, open, high, low, close)[source]

Plot a chart using string series name, with value.

Parameters:
  • chart (str) — Chart name
  • series (str) — Series name
  • open (int | float) — The candlestick open value
  • high (int | float) — The candlestick high value
  • low (int | float) — The candlestick low value
  • close (int | float) — The candlestick close value
plot(chart, first, second=None, third=None, fourth=None)[source]

Plot a chart using string series name, with value.

Parameters:
plot(chart, series, value)[source]

Plot a chart using string series name, with value.

Parameters:
  • chart (str)
  • series (str)
  • value (int | float)
plot(chart, series, bar)[source]

Plot a chart using string series name, with value.

Parameters:
  • chart (str) — Chart name
  • series (str) — Name of the plot series
  • bar (TradeBar) — The trade bar to be plotted to the candlestick series
plot(series, py_object)[source]

Plot a chart using string series name, with value.

Parameters:
  • series (str) — Name of the plot series
  • py_object (PyObject) — PyObject with the value to plot
plot(chart, indicators)[source]

Plot a chart using string series name, with value.

Parameters:
  • chart (str) — The chart's name
  • indicators (IndicatorBase[]) — The indicators to plot
plot_indicator(chart, wait_for_ready, first, second=None, third=None, fourth=None)[source]

Automatically plots each indicator when a new value is available

Parameters:
  • chart (str)
  • wait_for_ready (bool)
  • first (PyObject)
  • second (PyObject, optional)
  • third (PyObject, optional)
  • fourth (PyObject, optional)
plot_indicator(chart, wait_for_ready, indicators)[source]

Automatically plots each indicator when a new value is available

Parameters:
record(series, value)[source]

Plot a chart using string series name, with int value. Alias of Plot();

Parameters:
  • series (str)
  • value (int | float)
set_runtime_statistic(name, value)[source]

Set a runtime statistic for the algorithm. Runtime statistics are shown in the top banner of a live algorithm GUI.

Parameters:
  • name (str) — Name of your runtime statistic
  • value (str | int | float) — String value of your runtime statistic
property runtime_statistics[source]

Access to the runtime statistics property. User provided statistics.

Returns:

Access to the runtime statistics property. User provided statistics.

Return type:

Dict[str, str]

Consolidating Data

Consolidating Data

consolidate(symbol, period, tick_type, handler)[source]

Registers the handler to receive consolidated data for the specified symbol

Parameters:
  • symbol (Symbol) — The symbol who's data is to be consolidated
  • period (Resolution | timedelta) — The symbol who's data is to be consolidated
  • tick_type (TickType) — The consolidation period
  • handler (None | PyObject | Action[QuoteBar] | Action[TradeBar]) — The tick type of subscription used as data source for consolidator. Specify null to use first subscription found.
Returns:

A new consolidator matching the requested parameters with the handler already registered

Return type:

IDataConsolidator

consolidate(symbol, calendar, tick_type, handler)[source]

Registers the handler to receive consolidated data for the specified symbol

Parameters:
  • symbol (Symbol) — The symbol who's data is to be consolidated
  • calendar (Callable[datetime, CalendarInfo]) — The symbol who's data is to be consolidated
  • tick_type (TickType) — The consolidation calendar
  • handler (None | PyObject | Action[QuoteBar] | Action[TradeBar]) — The tick type of subscription used as data source for consolidator. Specify null to use first subscription found.
Returns:

A new consolidator matching the requested parameters with the handler already registered

Return type:

IDataConsolidator

deregister_indicator(indicator)[source]

Will deregister an indicator and it's associated consolidator instance so they stop receiving data updates

Parameters:
  • indicator (IndicatorBase) — The indicator instance to deregister
resolve_consolidator(symbol, resolution, data_type=None)[source]

Gets the default consolidator for the specified symbol and resolution

Parameters:
  • symbol (Symbol) — The symbol whose data is to be consolidated
  • resolution (Resolution) — The resolution for the consolidator, if null, uses the resolution from subscription
  • data_type (Type, optional) — The data type for this consolidator, if null, uses TradeBar over QuoteBar if present
Returns:

The new default consolidator

Return type:

IDataConsolidator

resolve_consolidator(symbol, time_span, data_type=None)[source]

Gets the default consolidator for the specified symbol and resolution

Parameters:
  • symbol (Symbol) — The symbol whose data is to be consolidated
  • time_span (timedelta) — The requested time span for the consolidator, if null, uses the resolution from subscription
  • data_type (Type, optional) — The data type for this consolidator, if null, uses TradeBar over QuoteBar if present
Returns:

The new default consolidator

Return type:

IDataConsolidator

unregister_indicator(indicator)[source]

Will unregister an indicator and it's associated consolidator instance so they stop receiving data updates

Parameters:
  • indicator (IndicatorBase) — The indicator instance to unregister

Handling Data

Handling Data

cik(cik, trading_date=None)[source]

Converts a CIK identifier into String) array

Parameters:
  • cik (int) — The CIK identifier of an asset
  • trading_date (datetime, optional) — The date that the stock being looked up iswas traded at. The date is used to create a Symbol with the ticker set to the ticker the asset traded under on the trading date.
Returns:

Symbols corresponding to the CIK. If no Symbol with a matching CIK was found, returns empty array.

Return type:

Symbol[]

cik(symbol)[source]

Converts a CIK identifier into String) array

Parameters:
Returns:

CIK corresponding to the Symbol. If no matching CIK is found, returns null.

Return type:

Optional[int]

composite_figi(composite_figi, trading_date=None)[source]

Converts a composite FIGI identifier into a String)

Parameters:
  • composite_figi (str) — The composite Financial Instrument Global Identifier (FIGI) of an asset
  • trading_date (datetime, optional) — The date that the stock being looked up iswas traded at. The date is used to create a Symbol with the ticker set to the ticker the asset traded under on the trading date.
Returns:

Symbol corresponding to the composite FIGI. If no Symbol with a matching composite FIGI was found, returns null.

Return type:

Symbol

composite_figi(symbol)[source]

Converts a composite FIGI identifier into a String)

Parameters:
Returns:

Composite FIGI corresponding to the Symbol. If no matching composite FIGI is found, returns null.

Return type:

str

cusip(cusip, trading_date=None)[source]

Converts a CUSIP identifier into a String)

Parameters:
  • cusip (str) — The CUSIP number of an asset
  • trading_date (datetime, optional) — The date that the stock being looked up iswas traded at. The date is used to create a Symbol with the ticker set to the ticker the asset traded under on the trading date.
Returns:

Symbol corresponding to the CUSIP. If no Symbol with a matching CUSIP was found, returns null.

Return type:

Symbol

cusip(symbol)[source]

Converts a CUSIP identifier into a String)

Parameters:
Returns:

CUSIP corresponding to the Symbol. If no matching CUSIP is found, returns null.

Return type:

str

fundamentals(symbol)[source]

Get the fundamental data for the requested symbol at the current time

Parameters:
Returns:

The fundamental data for the Symbol

Return type:

Fundamental

fundamentals(symbols)[source]

Get the fundamental data for the requested symbol at the current time

Parameters:
  • symbols (List[Symbol])
Returns:

The fundamental data for the symbols

Return type:

List[Fundamental]

isin(isin, trading_date=None)[source]

Converts an ISIN identifier into a String)

Parameters:
  • isin (str) — The International Securities Identification Number (ISIN) of an asset
  • trading_date (datetime, optional) — The date that the stock being looked up iswas traded at. The date is used to create a Symbol with the ticker set to the ticker the asset traded under on the trading date.
Returns:

Symbol corresponding to the ISIN. If no Symbol with a matching ISIN was found, returns null.

Return type:

Symbol

isin(symbol)[source]

Converts an ISIN identifier into a String)

Parameters:
Returns:

ISIN corresponding to the Symbol. If no matching ISIN is found, returns null.

Return type:

str

on_data(slice)[source]

Event - v3.0 DATA EVENT HANDLER: (Pattern) Basic template for user to override for receiving all subscription data in a single event

Parameters:
  • slice (Slice) — The current slice of data keyed by symbol string
on_delistings(delistings)[source]

Event handler to be called when there's been a delistings event

Parameters:
  • delistings (Delistings) — The current time slice delistings
on_dividends(dividends)[source]

Event handler to be called when there's been a dividend event

Parameters:
  • dividends (Dividends) — The current time slice dividends
on_end_of_algorithm()[source]

End of algorithm run event handler. This method is called at the end of a backtest or live trading operation. Intended for closing out logs.

on_end_of_day(symbol)[source]

End of a trading day event handler. This method is called at the end of the algorithm day (or multiple times if trading multiple assets).

Parameters:
  • symbol (str | Symbol) — Asset symbol for this end of day event. Forex and equities have different closing hours.
on_end_of_time_step()[source]

Invoked at the end of every time step. This allows the algorithm to process events before advancing to the next time step.

on_splits(splits)[source]

Event handler to be called when there's been a split event

Parameters:
  • splits (Splits) — The current time slice splits
on_symbol_changed_events(symbols_changed)[source]

Event handler to be called when there's been a symbol changed event

Parameters:
on_warmup_finished()[source]

Called when the algorithm has completed initialization and warm up.

sedol(sedol, trading_date=None)[source]

Converts a SEDOL identifier into a String)

Parameters:
  • sedol (str) — The SEDOL identifier of an asset
  • trading_date (datetime, optional) — The date that the stock being looked up iswas traded at. The date is used to create a Symbol with the ticker set to the ticker the asset traded under on the trading date.
Returns:

Symbol corresponding to the SEDOL. If no Symbol with a matching SEDOL was found, returns null.

Return type:

Symbol

sedol(symbol)[source]

Converts a SEDOL identifier into a String)

Parameters:
Returns:

SEDOL corresponding to the Symbol. If no matching SEDOL is found, returns null.

Return type:

str

set_algorithm_id(algorithm_id)[source]

Set the algorithm id (backtestId or live deployId for the algorithm).

Parameters:
  • algorithm_id (str) — String Algorithm Id
set_api(api)[source]

Provide the API for the algorithm.

Parameters:
  • api (IApi) — Initiated API
set_available_data_types(available_data_types)[source]

Set the available data feeds in the SecurityManager

Parameters:
  • available_data_types (Dict[SecurityType, List[TickType]]) — supports
set_current_slice(slice)[source]

Sets the current slice

Parameters:
  • slice (Slice) — The Slice object
set_date_time(frontier)[source]

Update the internal algorithm time frontier.

Parameters:
  • frontier (datetime) — Current utc datetime.
set_end_date(year, month, day)[source]

Set the end date for a backtest run

Parameters:
  • year (int) — Int end date 1-30
  • month (int) — Int month end date
  • day (int) — Int year end date
set_end_date(end)[source]

Set the end date for a backtest run

Parameters:
  • end (datetime) — Datetime value for end date
set_object_store(object_store)[source]

Sets the object store

Parameters:
  • object_store (IObjectStore) — The object store
set_run_time_error(exception)[source]

Set the runtime error

Parameters:
  • exception (Exception) — Represents error that occur during execution
set_start_date(year, month, day)[source]

Set the start date for backtest.

Parameters:
  • year (int) — Int starting date 1-30
  • month (int) — Int month starting date
  • day (int) — Int year starting date
set_start_date(start)[source]

Set the start date for backtest.

Parameters:
  • start (datetime) — Datetime Start date for backtest
set_time_zone(time_zone)[source]

Sets the time zone of the Time property in the algorithm

Parameters:
  • time_zone (str | datetimeZone) — The desired time zone
property algorithm_id[source]

Algorithm Id for this backtest or live algorithm.

Returns:

Algorithm Id for this backtest or live algorithm.

Return type:

str

property current_slice[source]

Returns the current Slice object

Returns:

Returns the current Slice object

Return type:

Slice

property end_date[source]

Value of the user set start-date from the backtest. Controls the period of the backtest.

Returns:

Value of the user set start-date from the backtest. Controls the period of the backtest.

Return type:

datetime

property name[source]

Public name for the algorithm as automatically generated by the IDE. Intended for helping distinguish logs by noting the algorithm-id.

Returns:

Public name for the algorithm as automatically generated by the IDE. Intended for helping distinguish logs by noting the algorithm-id.

Return type:

str

property object_store[source]

Gets the object store, used for persistence

Returns:

Gets the object store, used for persistence

Return type:

ObjectStore

property settings[source]

Gets the user settings for the algorithm

Returns:

Gets the user settings for the algorithm

Return type:

IAlgorithmSettings

property start_date[source]

Value of the user set start-date from the backtest.

Returns:

Value of the user set start-date from the backtest.

Return type:

datetime

property status[source]

Gets or sets the current status of the algorithm

Returns:

Gets or sets the current status of the algorithm

Return type:

AlgorithmStatus

property subscription_manager[source]

Generic Data Manager - Required for compiling all data feeds in order, and passing them into algorithm event methods. The subscription manager contains a list of the data feed's we're subscribed to and properties of each data feed.

Returns:

Generic Data Manager - Required for compiling all data feeds in order, and passing them into algorithm event methods. The subscription manager contains a list of the data feed's we're subscribed to and properties of each data feed.

Return type:

SubscriptionManager

property tags[source]

A list of tags associated with the algorithm or the backtest, useful for categorization

Returns:

A list of tags associated with the algorithm or the backtest, useful for categorization

Return type:

HashSet[str]

property time[source]

Read-only value for current time frontier of the algorithm in terms of the TimeZone

Returns:

Read-only value for current time frontier of the algorithm in terms of the TimeZone

Return type:

datetime

property time_zone[source]

Gets the time zone used for the Time property. The default value is

Returns:

Gets the time zone used for the Time property. The default value is

Return type:

datetimeZone

property utc_time[source]

Current date/time in UTC.

Returns:

Current date/time in UTC.

Return type:

datetime

Historical Data

Historical Data

history(type, tickers, start, end, resolution=None, fill_forward=None, extended_market_hours=None, data_mapping_mode=None, data_normalization_mode=None, contract_depth_offset=None)[source]

Get the history for all configured securities over the requested span. This will use the resolution and other subscription settings for each security. The symbols must exist in the Securities collection.

Parameters:
  • type (PyObject) — The data type of the symbols
  • tickers (PyObject) — The symbols to retrieve historical data for
  • start (datetime) — The start time in the algorithm's time zone
  • end (datetime) — The end time in the algorithm's time zone
  • resolution (Resolution, optional) — The resolution to request
  • fill_forward (bool, optional) — True to fill forward missing data, false otherwise
  • extended_market_hours (bool, optional) — True to include extended market hours data, false otherwise
  • data_mapping_mode (DataMappingMode, optional) — The contract mapping mode to use for the security history request
  • data_normalization_mode (DataNormalizationMode, optional) — The price scaling mode to use for the securities history
  • contract_depth_offset (int, optional) — The continuous contract desired offset from the current front month. For example, 0 will use the front month, 1 will use the back month contract
Returns:

pandas.DataFrame containing the requested historical data

Return type:

PyObject

history(type, symbol, start, end, resolution=None, fill_forward=None, extended_market_hours=None, data_mapping_mode=None, data_normalization_mode=None, contract_depth_offset=None)[source]

Get the history for all configured securities over the requested span. This will use the resolution and other subscription settings for each security. The symbols must exist in the Securities collection.

Parameters:
  • type (PyObject) — The data type of the symbols
  • symbol (Symbol) — The symbol to retrieve historical data for
  • start (datetime) — The start time in the algorithm's time zone
  • end (datetime) — The end time in the algorithm's time zone
  • resolution (Resolution, optional) — The resolution to request
  • fill_forward (bool, optional) — True to fill forward missing data, false otherwise
  • extended_market_hours (bool, optional) — True to include extended market hours data, false otherwise
  • data_mapping_mode (DataMappingMode, optional) — The contract mapping mode to use for the security history request
  • data_normalization_mode (DataNormalizationMode, optional) — The price scaling mode to use for the securities history
  • contract_depth_offset (int, optional) — The continuous contract desired offset from the current front month. For example, 0 will use the front month, 1 will use the back month contract
Returns:

pandas.DataFrame containing the requested historical data

Return type:

PyObject | List[TradeBar]

history(type, tickers, periods, resolution=None, fill_forward=None, extended_market_hours=None, data_mapping_mode=None, data_normalization_mode=None, contract_depth_offset=None)[source]

Get the history for all configured securities over the requested span. This will use the resolution and other subscription settings for each security. The symbols must exist in the Securities collection.

Parameters:
  • type (PyObject) — The data type of the symbols
  • tickers (PyObject) — The symbols to retrieve historical data for
  • periods (int) — The number of bars to request
  • resolution (Resolution, optional) — The resolution to request
  • fill_forward (bool, optional) — True to fill forward missing data, false otherwise
  • extended_market_hours (bool, optional) — True to include extended market hours data, false otherwise
  • data_mapping_mode (DataMappingMode, optional) — The contract mapping mode to use for the security history request
  • data_normalization_mode (DataNormalizationMode, optional) — The price scaling mode to use for the securities history
  • contract_depth_offset (int, optional) — The continuous contract desired offset from the current front month. For example, 0 will use the front month, 1 will use the back month contract
Returns:

pandas.DataFrame containing the requested historical data

Return type:

PyObject | List[Slice]

history(type, tickers, span, resolution=None, fill_forward=None, extended_market_hours=None, data_mapping_mode=None, data_normalization_mode=None, contract_depth_offset=None)[source]

Get the history for all configured securities over the requested span. This will use the resolution and other subscription settings for each security. The symbols must exist in the Securities collection.

Parameters:
  • type (PyObject) — The data type of the symbols
  • tickers (PyObject) — The symbols to retrieve historical data for
  • span (timedelta) — The span over which to retrieve recent historical data
  • resolution (Resolution, optional) — The resolution to request
  • fill_forward (bool, optional) — True to fill forward missing data, false otherwise
  • extended_market_hours (bool, optional) — True to include extended market hours data, false otherwise
  • data_mapping_mode (DataMappingMode, optional) — The contract mapping mode to use for the security history request
  • data_normalization_mode (DataNormalizationMode, optional) — The price scaling mode to use for the securities history
  • contract_depth_offset (int, optional) — The continuous contract desired offset from the current front month. For example, 0 will use the front month, 1 will use the back month contract
Returns:

pandas.DataFrame containing the requested historical data

Return type:

PyObject | List[Slice]

history(type, symbol, periods, resolution=None, fill_forward=None, extended_market_hours=None, data_mapping_mode=None, data_normalization_mode=None, contract_depth_offset=None)[source]

Get the history for all configured securities over the requested span. This will use the resolution and other subscription settings for each security. The symbols must exist in the Securities collection.

Parameters:
  • type (PyObject) — The data type of the symbols
  • symbol (Symbol) — The symbol to retrieve historical data for
  • periods (int) — The number of bars to request
  • resolution (Resolution, optional) — The resolution to request
  • fill_forward (bool, optional) — True to fill forward missing data, false otherwise
  • extended_market_hours (bool, optional) — True to include extended market hours data, false otherwise
  • data_mapping_mode (DataMappingMode, optional) — The contract mapping mode to use for the security history request
  • data_normalization_mode (DataNormalizationMode, optional) — The price scaling mode to use for the securities history
  • contract_depth_offset (int, optional) — The continuous contract desired offset from the current front month. For example, 0 will use the front month, 1 will use the back month contract
Returns:

pandas.DataFrame containing the requested historical data

Return type:

PyObject | List[TradeBar] | List[Slice]

history(type, symbol, span, resolution=None, fill_forward=None, extended_market_hours=None, data_mapping_mode=None, data_normalization_mode=None, contract_depth_offset=None)[source]

Get the history for all configured securities over the requested span. This will use the resolution and other subscription settings for each security. The symbols must exist in the Securities collection.

Parameters:
  • type (PyObject) — The data type of the symbols
  • symbol (Symbol) — The symbol to retrieve historical data for
  • span (timedelta) — The span over which to retrieve recent historical data
  • resolution (Resolution, optional) — The resolution to request
  • fill_forward (bool, optional) — True to fill forward missing data, false otherwise
  • extended_market_hours (bool, optional) — True to include extended market hours data, false otherwise
  • data_mapping_mode (DataMappingMode, optional) — The contract mapping mode to use for the security history request
  • data_normalization_mode (DataNormalizationMode, optional) — The price scaling mode to use for the securities history
  • contract_depth_offset (int, optional) — The continuous contract desired offset from the current front month. For example, 0 will use the front month, 1 will use the back month contract
Returns:

pandas.DataFrame containing the requested historical data

Return type:

PyObject | List[TradeBar] | List[Slice]

history(symbols, start, end, resolution=None, fill_forward=None, extended_market_hours=None, data_mapping_mode=None, data_normalization_mode=None, contract_depth_offset=None)[source]

Get the history for all configured securities over the requested span. This will use the resolution and other subscription settings for each security. The symbols must exist in the Securities collection.

Parameters:
  • symbols (List[Symbol]) — The symbols to retrieve historical data for
  • start (datetime) — The start time in the algorithm's time zone
  • end (datetime) — The end time in the algorithm's time zone
  • resolution (Resolution, optional) — The resolution to request
  • fill_forward (bool, optional) — True to fill forward missing data, false otherwise
  • extended_market_hours (bool, optional) — True to include extended market hours data, false otherwise
  • data_mapping_mode (DataMappingMode, optional) — The contract mapping mode to use for the security history request
  • data_normalization_mode (DataNormalizationMode, optional) — The price scaling mode to use for the securities history
  • contract_depth_offset (int, optional) — The continuous contract desired offset from the current front month. For example, 0 will use the front month, 1 will use the back month contract
Returns:

An enumerable of slice containing the requested historical data

Return type:

List[Slice]

history(universe, start, end, resolution=None, fill_forward=None, extended_market_hours=None, data_mapping_mode=None, data_normalization_mode=None, contract_depth_offset=None)[source]

Get the history for all configured securities over the requested span. This will use the resolution and other subscription settings for each security. The symbols must exist in the Securities collection.

Parameters:
  • universe (Universe) — The universe to fetch the data for
  • start (datetime) — The start time in the algorithm's time zone
  • end (datetime) — The end time in the algorithm's time zone
  • resolution (Resolution, optional) — The resolution to request
  • fill_forward (bool, optional) — True to fill forward missing data, false otherwise
  • extended_market_hours (bool, optional) — True to include extended market hours data, false otherwise
  • data_mapping_mode (DataMappingMode, optional) — The contract mapping mode to use for the security history request
  • data_normalization_mode (DataNormalizationMode, optional) — The price scaling mode to use for the securities history
  • contract_depth_offset (int, optional) — The continuous contract desired offset from the current front month. For example, 0 will use the front month, 1 will use the back month contract
Returns:

An enumerable of slice containing the requested historical data

Return type:

List[BaseDataCollection]

history(symbols, span, resolution=None, fill_forward=None, extended_market_hours=None, data_mapping_mode=None, data_normalization_mode=None, contract_depth_offset=None)[source]

Get the history for all configured securities over the requested span. This will use the resolution and other subscription settings for each security. The symbols must exist in the Securities collection.

Parameters:
  • symbols (List[Symbol]) — The symbols to retrieve historical data for
  • span (timedelta) — The span over which to retrieve recent historical data
  • resolution (Resolution, optional) — The resolution to request
  • fill_forward (bool, optional) — True to fill forward missing data, false otherwise
  • extended_market_hours (bool, optional) — True to include extended market hours data, false otherwise
  • data_mapping_mode (DataMappingMode, optional) — The contract mapping mode to use for the security history request
  • data_normalization_mode (DataNormalizationMode, optional) — The price scaling mode to use for the securities history
  • contract_depth_offset (int, optional) — The continuous contract desired offset from the current front month. For example, 0 will use the front month, 1 will use the back month contract
Returns:

An enumerable of slice containing the requested historical data

Return type:

List[Slice]

history(symbols, periods, resolution=None, fill_forward=None, extended_market_hours=None, data_mapping_mode=None, data_normalization_mode=None, contract_depth_offset=None)[source]

Get the history for all configured securities over the requested span. This will use the resolution and other subscription settings for each security. The symbols must exist in the Securities collection.

Parameters:
  • symbols (List[Symbol]) — The symbols to retrieve historical data for
  • periods (int) — The number of bars to request
  • resolution (Resolution, optional) — The resolution to request
  • fill_forward (bool, optional) — True to fill forward missing data, false otherwise
  • extended_market_hours (bool, optional) — True to include extended market hours data, false otherwise
  • data_mapping_mode (DataMappingMode, optional) — The contract mapping mode to use for the security history request
  • data_normalization_mode (DataNormalizationMode, optional) — The price scaling mode to use for the securities history
  • contract_depth_offset (int, optional) — The continuous contract desired offset from the current front month. For example, 0 will use the front month, 1 will use the back month contract
Returns:

An enumerable of slice containing the requested historical data

Return type:

List[Slice]

history(universe, periods, resolution=None, fill_forward=None, extended_market_hours=None, data_mapping_mode=None, data_normalization_mode=None, contract_depth_offset=None)[source]

Get the history for all configured securities over the requested span. This will use the resolution and other subscription settings for each security. The symbols must exist in the Securities collection.

Parameters:
  • universe (Universe) — The universe to fetch the data for
  • periods (int) — The number of bars to request
  • resolution (Resolution, optional) — The resolution to request
  • fill_forward (bool, optional) — True to fill forward missing data, false otherwise
  • extended_market_hours (bool, optional) — True to include extended market hours data, false otherwise
  • data_mapping_mode (DataMappingMode, optional) — The contract mapping mode to use for the security history request
  • data_normalization_mode (DataNormalizationMode, optional) — The price scaling mode to use for the securities history
  • contract_depth_offset (int, optional) — The continuous contract desired offset from the current front month. For example, 0 will use the front month, 1 will use the back month contract
Returns:

An enumerable of slice containing data over the most recent span for all configured securities

Return type:

List[BaseDataCollection] | List[Slice]

history(universe, span, resolution=None, fill_forward=None, extended_market_hours=None, data_mapping_mode=None, data_normalization_mode=None, contract_depth_offset=None)[source]

Get the history for all configured securities over the requested span. This will use the resolution and other subscription settings for each security. The symbols must exist in the Securities collection.

Parameters:
  • universe (Universe) — The universe to fetch the data for
  • span (timedelta) — The span over which to request data. This is a calendar span, so take into consideration weekends and such
  • resolution (Resolution, optional) — The resolution to request
  • fill_forward (bool, optional) — True to fill forward missing data, false otherwise
  • extended_market_hours (bool, optional) — True to include extended market hours data, false otherwise
  • data_mapping_mode (DataMappingMode, optional) — The contract mapping mode to use for the security history request
  • data_normalization_mode (DataNormalizationMode, optional) — The price scaling mode to use for the securities history
  • contract_depth_offset (int, optional) — The continuous contract desired offset from the current front month. For example, 0 will use the front month, 1 will use the back month contract
Returns:

An enumerable of slice containing the requested historical data

Return type:

List[BaseDataCollection] | List[Slice]

history(request)[source]

Get the history for all configured securities over the requested span. This will use the resolution and other subscription settings for each security. The symbols must exist in the Securities collection.

Parameters:
Returns:

An enumerable of slice satisfying the specified history request

Return type:

List[Slice]

history(requests)[source]

Get the history for all configured securities over the requested span. This will use the resolution and other subscription settings for each security. The symbols must exist in the Securities collection.

Parameters:
  • requests (List[HistoryRequest]) — the history requests to execute
Returns:

An enumerable of slice satisfying the specified history request

Return type:

List[Slice]

set_finished_warming_up()[source]

Sets IsWarmingUp to false to indicate this algorithm has finished its warm up

set_history_provider(history_provider)[source]

Set the historical data provider

Parameters:
  • history_provider (IHistoryProvider) — Historical data provider
set_warm_up(time_span, resolution)[source]

Sets the warm up period to the specified value

Parameters:
  • time_span (timedelta) — The amount of time to warm up, this does not take into account market hoursweekends
  • resolution (Resolution) — The resolution to request
set_warm_up(bar_count, resolution)[source]

Sets the warm up period to the specified value

Parameters:
  • bar_count (int) — The number of data points requested for warm up
  • resolution (Resolution) — The resolution to request
set_warmup(time_span, resolution)[source]

Sets the warm up period to the specified value

Parameters:
  • time_span (timedelta) — The amount of time to warm up, this does not take into account market hoursweekends
  • resolution (Resolution) — The resolution to request
set_warmup(bar_count, resolution)[source]

Sets the warm up period to the specified value

Parameters:
  • bar_count (int) — The number of data points requested for warm up
  • resolution (Resolution) — The resolution to request
warm_up_indicator(symbol, indicator, period, selector=None)[source]

Warms up a given indicator with historical data

Parameters:
  • symbol (Symbol) — The symbol whose indicator we want
  • indicator (None | IndicatorBase[IndicatorDataPoint]) — The indicator we want to warm up
  • period (timedelta) — The necessary period to warm up the indicator
  • selector (Callable[IBaseData, float] | None, optional) — x.Value)
property is_warming_up[source]

Gets whether or not this algorithm is still warming up

Returns:

Gets whether or not this algorithm is still warming up

Return type:

bool

Indicators

Indicators

a(target, reference, alpha_period=1, beta_period=252, resolution=None, risk_free_rate=None, selector=None)[source]

Adds a tag to the algorithm

Parameters:
  • target (Symbol) — The target symbol whose Alpha value we want
  • reference (Symbol) — The reference symbol to compare with the target symbol
  • alpha_period (int, optional) — The period of the Alpha indicator
  • beta_period (int, optional) — The period of the Beta indicator
  • resolution (Resolution, optional) — The resolution
  • risk_free_rate (float, optional) — The risk free rate
  • selector (Callable[IBaseData, IBaseDataBar], optional) — Selects a value from the BaseData to send into the indicator, if null defaults to casting the input value to a TradeBar
Returns:

The Alpha indicator for the given parameters

Return type:

Alpha

abands(symbol, period, width=4.0, moving_average_type=0, resolution=None, selector=None)[source]

Creates a new Acceleration Bands indicator.

Parameters:
  • symbol (Symbol) — The symbol whose Acceleration Bands we want.
  • period (int) — The period of the three moving average (middle, upper and lower band).
  • width (float, optional) — A coefficient specifying the distance between the middle band and upper or lower bands.
  • moving_average_type (MovingAverageType, optional) — Type of the moving average.
  • resolution (Resolution, optional) — The resolution.
  • selector (Callable[IBaseData, TradeBar], optional) — Selects a value from the BaseData to send into the indicator, if null defaults to casting the input value to a TradeBar.
Return type:

AccelerationBands

ad(symbol, resolution=None, selector=None)[source]

Creates a new AccumulationDistribution indicator.

Parameters:
  • symbol (Symbol) — The symbol whose AD we want
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, TradeBar], optional) — x.Value)
Returns:

The AccumulationDistribution indicator for the requested symbol over the specified period

Return type:

AccumulationDistribution

addiff(symbols, resolution=None, selector=None)[source]

Creates a new Advance/Decline Difference indicator

Parameters:
  • symbols (List[Symbol]) — The symbols whose AD Difference we want
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, TradeBar], optional) — Selects a value from the BaseData to send into the indicator, if null defaults to casting the input value to a TradeBar
Returns:

The AdvanceDecline Difference indicator for the requested symbol over the specified period

Return type:

AdvanceDeclineDifference

adosc(symbol, fast_period, slow_period, resolution=None, selector=None)[source]

Creates a new AccumulationDistributionOscillator indicator.

Parameters:
  • symbol (Symbol) — The symbol whose ADOSC we want
  • fast_period (int) — The fast moving average period
  • slow_period (int) — The slow moving average period
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, TradeBar], optional) — x.Value)
Returns:

The AccumulationDistributionOscillator indicator for the requested symbol over the specified period

Return type:

AccumulationDistributionOscillator

adr(symbols, resolution=None, selector=None)[source]

Creates a new Advance/Decline Ratio indicator

Parameters:
  • symbols (List[Symbol]) — The symbols whose AD Ratio we want
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, TradeBar], optional) — Selects a value from the BaseData to send into the indicator, if null defaults to casting the input value to a TradeBar
Returns:

The AdvanceDecline Ratio indicator for the requested symbol over the specified period

Return type:

AdvanceDeclineRatio

advr(symbols, resolution=None, selector=None)[source]

Creates a new Advance/Decline Volume Ratio indicator

Parameters:
  • symbols (List[Symbol]) — The symbol whose AD Volume Rate we want
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, TradeBar], optional) — Selects a value from the BaseData to send into the indicator, if null defaults to casting the input value to a TradeBar
Returns:

The AdvanceDecline Volume Ratio indicator for the requested symbol over the specified period

Return type:

AdvanceDeclineVolumeRatio

adx(symbol, period, resolution=None, selector=None)[source]

Creates a new Average Directional Index indicator. The indicator will be automatically updated on the given resolution.

Parameters:
  • symbol (Symbol) — The symbol whose Average Directional Index we seek
  • period (int) — The resolution.
  • resolution (Resolution, optional) — The period over which to compute the Average Directional Index
  • selector (Callable[IBaseData, IBaseDataBar], optional) — Selects a value from the BaseData to send into the indicator, if null defaults to casting the input value to a TradeBar
Returns:

The Average Directional Index indicator for the requested symbol.

Return type:

AverageDirectionalIndex

adxr(symbol, period, resolution=None, selector=None)[source]

Creates a new AverageDirectionalMovementIndexRating indicator.

Parameters:
  • symbol (Symbol) — The symbol whose ADXR we want
  • period (int) — The period over which to compute the ADXR
  • resolution (Resolution, optional) — The resolution.
  • selector (Callable[IBaseData, IBaseDataBar], optional) — x.Value)
Returns:

The AverageDirectionalMovementIndexRating indicator for the requested symbol over the specified period

Return type:

AverageDirectionalMovementIndexRating

alma(symbol, period, sigma=6, offset=0.85, resolution=None, selector=None)[source]

Creates a new ArnaudLegouxMovingAverage indicator.

Parameters:
  • symbol (Symbol) — The symbol whose ALMA we want
  • period (int) — int - the number of periods to calculate the ALMA
  • sigma (int, optional) — int - this parameter is responsible for the shape of the curve coefficients.
  • offset (float, optional) — decimal - This parameter allows regulating the smoothness and high sensitivity of the Moving Average. The range for this parameter is [0, 1].
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, float], optional) — x.Value)
Returns:

The ArnaudLegouxMovingAverage indicator for the requested symbol over the specified period

Return type:

ArnaudLegouxMovingAverage

ao(symbol, slow_period, fast_period, type, resolution=None, selector=None)[source]

Creates a new Awesome Oscillator from the specified periods.

Parameters:
  • symbol (Symbol) — The symbol whose Awesome Oscillator we seek
  • slow_period (int) — The resolution.
  • fast_period (int) — The period of the fast moving average associated with the AO
  • type (MovingAverageType) — The period of the slow moving average associated with the AO
  • resolution (Resolution, optional) — The type of moving average used when computing the fast and slow term. Defaults to simple moving average.
  • selector (Callable[IBaseData, IBaseDataBar], optional) — Selects a value from the BaseData to send into the indicator, if null defaults to casting the input value to a TradeBar
Return type:

AwesomeOscillator

apo(symbol, fast_period, slow_period, moving_average_type, resolution=None, selector=None)[source]

Creates a new AbsolutePriceOscillator indicator.

Parameters:
  • symbol (Symbol) — The symbol whose APO we want
  • fast_period (int) — The fast moving average period
  • slow_period (int) — The slow moving average period
  • moving_average_type (MovingAverageType) — The type of moving average to use
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, float], optional) — x.Value)
Returns:

The AbsolutePriceOscillator indicator for the requested symbol over the specified period

Return type:

AbsolutePriceOscillator

aps(symbol, period=3, resolution=None, selector=None)[source]

Creates an AugenPriceSpike indicator for the symbol. The indicator will be automatically updated on the given resolution.

Parameters:
  • symbol (Symbol) — The symbol whose APS we want
  • period (int, optional) — The period of the APS
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, float], optional) — x.Value)
Returns:

The AugenPriceSpike indicator for the given parameters

Return type:

AugenPriceSpike

arima(symbol, ar_order, diff_order, ma_order, period, resolution=None, selector=None)[source]

Creates a new ARIMA indicator.

Parameters:
  • symbol (Symbol) — The symbol whose ARIMA indicator we want
  • ar_order (int) — AR order (p) -- defines the number of past values to consider in the AR component of the model.
  • diff_order (int) — Difference order (d) -- defines how many times to difference the model before fitting parameters.
  • ma_order (int) — MA order (q) -- defines the number of past values to consider in the MA component of the model.
  • period (int) — Size of the rolling series to fit onto
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, float], optional) — x.Value)
Returns:

The ARIMA indicator for the requested symbol over the specified period

Return type:

AutoRegressiveIntegratedMovingAverage

aroon(symbol, up_period, down_period, resolution=None, selector=None)[source]

Creates a new AroonOscillator indicator which will compute the AroonUp and AroonDown (as well as the delta)

Parameters:
  • symbol (Symbol) — The symbol whose Aroon we seek
  • up_period (int) — The look back period for computing number of periods since maximum
  • down_period (int) — The look back period for computing number of periods since minimum
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, IBaseDataBar], optional) — Selects a value from the BaseData to send into the indicator, if null defaults to casting the input value to a TradeBar
Returns:

An AroonOscillator configured with the specified periods

Return type:

AroonOscillator

aroon(symbol, period, resolution=None, selector=None)[source]

Creates a new AroonOscillator indicator which will compute the AroonUp and AroonDown (as well as the delta)

Parameters:
  • symbol (Symbol) — The symbol whose Aroon we seek
  • period (int) — The look back period for computing number of periods since maximum and minimum
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, IBaseDataBar], optional) — Selects a value from the BaseData to send into the indicator, if null defaults to casting the input value to a TradeBar
Returns:

An AroonOscillator configured with the specified periods

Return type:

AroonOscillator

asi(symbol, limit_move, resolution=4, selector=None)[source]

Creates a Wilder Accumulative Swing Index (ASI) indicator for the symbol. The indicator will be automatically updated on the given resolution.

Parameters:
  • symbol (Symbol) — The symbol whose ASI we want
  • limit_move (float) — The maximum daily change in price for the ASI
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, TradeBar], optional) — Selects a value from the BaseData to send into the indicator, if null defaults to casting the input value to a TradeBar
Returns:

The WilderAccumulativeSwingIndex for the given parameters

Return type:

WilderAccumulativeSwingIndex

atr(symbol, period, type=0, resolution=None, selector=None)[source]

Creates a new AverageTrueRange indicator for the symbol. The indicator will be automatically updated on the given resolution.

Parameters:
  • symbol (Symbol) — The symbol whose ATR we want
  • period (int) — The smoothing period used to smooth the computed TrueRange values
  • type (MovingAverageType, optional) — The type of smoothing to use
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, IBaseDataBar], optional) — Selects a value from the BaseData to send into the indicator, if null defaults to casting the input value to a TradeBar
Returns:

A new AverageTrueRange indicator with the specified smoothing type and period

Return type:

AverageTrueRange

b(target, reference, period, resolution=None, selector=None)[source]

Creates a new BollingerBands indicator which will compute the MiddleBand, UpperBand, LowerBand, and StandardDeviation

Parameters:
  • target (Symbol) — The target symbol whose Beta value we want
  • reference (Symbol) — The reference symbol to compare with the target symbol
  • period (int) — The period of the Beta indicator
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, IBaseDataBar], optional) — Selects a value from the BaseData to send into the indicator, if null defaults to casting the input value to a TradeBar
Returns:

The Beta indicator for the given parameters

Return type:

Beta

bb(symbol, period, k, moving_average_type=0, resolution=None, selector=None)[source]

Creates a new BollingerBands indicator which will compute the MiddleBand, UpperBand, LowerBand, and StandardDeviation

Parameters:
  • symbol (Symbol) — The symbol whose BollingerBands we seek
  • period (int) — The period of the standard deviation and moving average (middle band)
  • k (float) — The number of standard deviations specifying the distance between the middle band and upper or lower bands
  • moving_average_type (MovingAverageType, optional) — The type of moving average to be used
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, float], optional) — x.Value)
Returns:

A BollingerBands configured with the specified period

Return type:

BollingerBands

bop(symbol, resolution=None, selector=None)[source]

Creates a new Balance Of Power indicator. The indicator will be automatically updated on the given resolution.

Parameters:
  • symbol (Symbol) — The symbol whose Balance Of Power we seek
  • resolution (Resolution, optional) — The resolution.
  • selector (Callable[IBaseData, IBaseDataBar], optional) — Selects a value from the BaseData to send into the indicator, if null defaults to casting the input value to a TradeBar
Returns:

The Balance Of Power indicator for the requested symbol.

Return type:

BalanceOfPower

c(target, reference, period, correlation_type=0, resolution=None, selector=None)[source]

Converts a composite FIGI identifier into a String)

Parameters:
  • target (Symbol) — The target symbol of this indicator
  • reference (Symbol) — The reference symbol of this indicator
  • period (int) — The period of this indicator
  • correlation_type (CorrelationType, optional) — Correlation type
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, IBaseDataBar], optional) — Selects a value from the BaseData to send into the indicator, if null defaults to casting the input value to a TradeBar
Returns:

The Correlation indicator for the given parameters

Return type:

Correlation

cc(symbol, short_roc_period=11, long_roc_period=14, lwma_period=10, resolution=None, selector=None)[source]

Initializes a new instance of the CoppockCurve indicator

Parameters:
  • symbol (Symbol) — The symbol whose Coppock Curve we want
  • short_roc_period (int, optional) — The period for the short ROC
  • long_roc_period (int, optional) — The period for the long ROC
  • lwma_period (int, optional) — The period for the LWMA
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, float], optional) — Selects a value from the BaseData to send into the indicator, if null defaults to casting the input value to a TradeBar
Returns:

The Coppock Curve indicator for the requested symbol over the specified period

Return type:

CoppockCurve

cci(symbol, period, moving_average_type=0, resolution=None, selector=None)[source]

Creates a new CommodityChannelIndex indicator. The indicator will be automatically updated on the given resolution.

Parameters:
  • symbol (Symbol) — The symbol whose CCI we want
  • period (int) — The period over which to compute the CCI
  • moving_average_type (MovingAverageType, optional) — The type of moving average to use in computing the typical price average
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, IBaseDataBar], optional) — Selects a value from the BaseData to send into the indicator, if null defaults to casting the input value to a TradeBar
Returns:

The CommodityChannelIndex indicator for the requested symbol over the specified period

Return type:

CommodityChannelIndex

cmf(symbol, period, resolution=None, selector=None)[source]

Creates a new ChaikinMoneyFlow indicator.

Parameters:
  • symbol (Symbol) — The symbol whose CMF we want
  • period (int) — The period over which to compute the CMF
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, TradeBar], optional) — Selects a value from the BaseData to send into the indicator, if null defaults to casting the input value to a TradeBar
Returns:

The ChaikinMoneyFlow indicator for the requested symbol over the specified period

Return type:

ChaikinMoneyFlow

cmo(symbol, period, resolution=None, selector=None)[source]

Creates a new ChandeMomentumOscillator indicator.

Parameters:
  • symbol (Symbol) — The symbol whose CMO we want
  • period (int) — The period over which to compute the CMO
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, float], optional) — x.Value)
Returns:

The ChandeMomentumOscillator indicator for the requested symbol over the specified period

Return type:

ChandeMomentumOscillator

create_indicator_name(symbol, type, resolution)[source]

Creates a new name for an indicator created with the convenience functions (SMA, EMA, ect...)

Parameters:
  • symbol (Symbol) — The symbol this indicator is registered to
  • type (str | Formattablestr) — The indicator type, for example, 'SMA(5)'
  • resolution (Resolution) — The resolution requested
Returns:

A unique for the given parameters

Return type:

str

d(symbol, mirror_option=None, risk_free_rate=None, dividend_yield=None, option_model=0, iv_model=None, resolution=None)[source]

Send a debug message to the web console:

Parameters:
  • symbol (Symbol) — The option symbol whose values we want as an indicator
  • mirror_option (Symbol, optional) — The mirror option for parity calculation
  • risk_free_rate (float, optional) — The risk free rate
  • dividend_yield (float, optional) — The dividend yield
  • option_model (OptionPricingModelType, optional) — The option pricing model used to estimate Delta
  • iv_model (OptionPricingModelType, optional) — The option pricing model used to estimate IV
  • resolution (Resolution, optional) — The desired resolution of the data
Returns:

A new Delta indicator for the specified symbol

Return type:

Delta

dch(symbol, upper_period, lower_period, resolution=None, selector=None)[source]

Creates a new Donchian Channel indicator which will compute the Upper Band and Lower Band. The indicator will be automatically updated on the given resolution.

Parameters:
  • symbol (Symbol) — The symbol whose Donchian Channel we seek.
  • upper_period (int) — The period over which to compute the upper Donchian Channel.
  • lower_period (int) — The period over which to compute the lower Donchian Channel.
  • resolution (Resolution, optional) — The resolution.
  • selector (Callable[IBaseData, IBaseDataBar], optional) — Selects a value from the BaseData to send into the indicator, if null defaults to casting the input value to a TradeBar
Returns:

The Donchian Channel indicator for the requested symbol.

Return type:

DonchianChannel

dch(symbol, period, resolution=None, selector=None)[source]

Creates a new Donchian Channel indicator which will compute the Upper Band and Lower Band. The indicator will be automatically updated on the given resolution.

Parameters:
  • symbol (Symbol) — The symbol whose Donchian Channel we seek.
  • period (int) — The period over which to compute the Donchian Channel.
  • resolution (Resolution, optional) — The resolution.
  • selector (Callable[IBaseData, IBaseDataBar], optional) — Selects a value from the BaseData to send into the indicator, if null defaults to casting the input value to a TradeBar
Returns:

The Donchian Channel indicator for the requested symbol.

Return type:

DonchianChannel

dem(symbol, period, type, resolution=None, selector=None)[source]

Creates a new DeMarker Indicator (DEM), an oscillator-type indicator measuring changes in terms of an asset's High and Low tradebar values.

Parameters:
  • symbol (Symbol) — The symbol whose DEM we seek.
  • period (int) — The period of the moving average implemented
  • type (MovingAverageType) — Specifies the type of moving average to be used
  • resolution (Resolution, optional) — The resolution.
  • selector (Callable[IBaseData, TradeBar], optional) — Selects a value from the BaseData to send into the indicator, if null defaults to casting the input value to a TradeBar
Returns:

The DeMarker indicator for the requested symbol.

Return type:

DeMarkerIndicator

dema(symbol, period, resolution=None, selector=None)[source]

Creates a new DoubleExponentialMovingAverage indicator.

Parameters:
  • symbol (Symbol) — The symbol whose DEMA we want
  • period (int) — The period over which to compute the DEMA
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, float], optional) — x.Value)
Returns:

The DoubleExponentialMovingAverage indicator for the requested symbol over the specified period

Return type:

floatExponentialMovingAverage

do(symbol, rsi_period, smoothing_rsi_period, double_smoothing_rsi_period, signal_line_period, resolution=None, selector=None)[source]

Creates a new DerivativeOscillator indicator.

Parameters:
  • symbol (Symbol) — The symbol whose DO we want
  • rsi_period (int) — The period over which to compute the RSI
  • smoothing_rsi_period (int) — The period over which to compute the smoothing RSI
  • double_smoothing_rsi_period (int) — The period over which to compute the double smoothing RSI
  • signal_line_period (int) — The period over which to compute the signal line
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, float], optional) — Selects a value from the BaseData to send into the indicator, if null defaults to the Value property of BaseData (x => x.Value)
Returns:

The DerivativeOscillator indicator for the requested symbol over the specified period

Return type:

DerivativeOscillator

dpo(symbol, period, resolution=None, selector=None)[source]

Creates a new DetrendedPriceOscillator indicator.

Parameters:
  • symbol (Symbol) — The symbol whose DPO we want
  • period (int) — The period over which to compute the DPO
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, float], optional) — x.Value)
Returns:

A new registered DetrendedPriceOscillator indicator for the requested symbol over the specified period

Return type:

DetrendedPriceOscillator

ema(symbol, period, smoothing_factor, resolution=None, selector=None)[source]

Creates an ExponentialMovingAverage indicator for the symbol. The indicator will be automatically updated on the given resolution.

Parameters:
  • symbol (Symbol) — The symbol whose EMA we want
  • period (int) — The period of the EMA
  • smoothing_factor (float) — The percentage of data from the previous value to be carried into the next value
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, float], optional) — x.Value)
Returns:

The ExponentialMovingAverage for the given parameters

Return type:

ExponentialMovingAverage

emv(symbol, period=1, scale=10000, resolution=None, selector=None)[source]

Creates an EaseOfMovementValue indicator for the symbol. The indicator will be automatically updated on the given resolution.

Parameters:
  • symbol (Symbol) — The symbol whose EMV we want
  • period (int, optional) — The period of the EMV
  • scale (int, optional) — The length of the outputed value
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, TradeBar], optional) — Selects a value from the BaseData to send into the indicator, if null defaults to casting the input value to a TradeBar
Returns:

The EaseOfMovementValue indicator for the given parameters

Return type:

EaseOfMovementValue

filtered_identity(symbol, resolution, selector=None, filter=None, field_name=None)[source]

Creates a new FilteredIdentity indicator for the symbol The indicator will be automatically updated on the symbol's subscription resolution

Parameters:
  • symbol (Symbol) — The symbol whose values we want as an indicator
  • resolution (Resolution | timedelta) — The desired resolution of the data
  • selector (Callable[IBaseData, IBaseDataBar] | PyObject, optional) — x.Value)
  • filter (PyObject | Callable[IBaseData, bool], optional) — true) which means no filter
  • field_name (str, optional) — The name of the field being selected
Returns:

A new FilteredIdentity indicator for the specified symbol and selector

Return type:

FilteredIdentity

fish(symbol, period, resolution=None, selector=None)[source]

Creates an FisherTransform indicator for the symbol. The indicator will be automatically updated on the given resolution.

Parameters:
  • symbol (Symbol) — The symbol whose FisherTransform we want
  • period (int) — The period of the FisherTransform
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, TradeBar], optional) — Selects a value from the BaseData to send into the indicator, if null defaults to casting the input value to a TradeBar
Returns:

The FisherTransform for the given parameters

Return type:

FisherTransform

frama(symbol, period, long_period=198, resolution=None, selector=None)[source]

Creates an FractalAdaptiveMovingAverage (FRAMA) indicator for the symbol. The indicator will be automatically updated on the given resolution.

Parameters:
  • symbol (Symbol) — The symbol whose FRAMA we want
  • period (int) — The period of the FRAMA
  • long_period (int, optional) — The long period of the FRAMA
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, IBaseDataBar], optional) — Selects a value from the BaseData to send into the indicator, if null defaults to casting the input value to a TradeBar
Returns:

The FRAMA for the given parameters

Return type:

FractalAdaptiveMovingAverage

g(symbol, mirror_option=None, risk_free_rate=None, dividend_yield=None, option_model=0, iv_model=None, resolution=None)[source]

Gets the parameter with the specified name. If a parameter with the specified name does not exist, the given default value is returned if any, else null

Parameters:
  • symbol (Symbol) — The option symbol whose values we want as an indicator
  • mirror_option (Symbol, optional) — The mirror option for parity calculation
  • risk_free_rate (float, optional) — The risk free rate
  • dividend_yield (float, optional) — The dividend yield
  • option_model (OptionPricingModelType, optional) — The option pricing model used to estimate Gamma
  • iv_model (OptionPricingModelType, optional) — The option pricing model used to estimate IV
  • resolution (Resolution, optional) — The desired resolution of the data
Returns:

A new Gamma indicator for the specified symbol

Return type:

Gamma

heikin_ashi(symbol, resolution=None, selector=None)[source]

Creates a new Heikin-Ashi indicator.

Parameters:
  • symbol (Symbol) — The symbol whose Heikin-Ashi we want
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, TradeBar], optional) — Selects a value from the BaseData to send into the indicator, if null defaults to casting the input value to a TradeBar
Returns:

The Heikin-Ashi indicator for the requested symbol over the specified period

Return type:

HeikinAshi

hma(symbol, period, resolution=None, selector=None)[source]

Creates a new HullMovingAverage indicator. The Hull moving average is a series of nested weighted moving averages, is fast and smooth.

Parameters:
  • symbol (Symbol) — The symbol whose Hull moving average we want
  • period (int) — The period over which to compute the Hull moving average
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, float], optional) — x.Value)
Return type:

HullMovingAverage

ht(symbol, length, in_phase_multiplication_factor, quadrature_multiplication_factor, resolution=None, selector=None)[source]

Creates a new Hilbert Transform indicator

Parameters:
  • symbol (Symbol) — The symbol whose Hilbert transform we want
  • length (int) — The length of the FIR filter used in the calculation of the Hilbert Transform. This parameter determines the number of filter coefficients in the FIR filter.
  • in_phase_multiplication_factor (float) — The multiplication factor used in the calculation of the in-phase component of the Hilbert Transform. This parameter adjusts the sensitivity and responsiveness of the transform to changes in the input signal.
  • quadrature_multiplication_factor (float) — The multiplication factor used in the calculation of the quadrature component of the Hilbert Transform. This parameter also adjusts the sensitivity and responsiveness of the transform to changes in the input signal.
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, float], optional) — x.Value)
Return type:

HilbertTransform

ichimoku(symbol, tenkan_period, kijun_period, senkou_a_period, senkou_b_period, senkou_a_delay_period, senkou_b_delay_period, resolution=None, selector=None)[source]

Creates a new IchimokuKinkoHyo indicator for the symbol. The indicator will be automatically updated on the given resolution.

Parameters:
  • symbol (Symbol) — The symbol whose ICHIMOKU we want
  • tenkan_period (int) — The period to calculate the Tenkan-sen period
  • kijun_period (int) — The period to calculate the Kijun-sen period
  • senkou_a_period (int) — The period to calculate the Tenkan-sen period
  • senkou_b_period (int) — The period to calculate the Tenkan-sen period
  • senkou_a_delay_period (int) — The period to calculate the Tenkan-sen period
  • senkou_b_delay_period (int) — The period to calculate the Tenkan-sen period
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, TradeBar], optional) — Selects a value from the BaseData to send into the indicator, if null defaults to casting the input value to a TradeBar
Returns:

A new IchimokuKinkoHyo indicator with the specified periods and delays

Return type:

IchimokuKinkoHyo

identity(symbol, resolution, selector=None, field_name=None)[source]

Creates a new Identity indicator for the symbol The indicator will be automatically updated on the symbol's subscription resolution

Parameters:
  • symbol (Symbol) — The symbol whose values we want as an indicator
  • resolution (Resolution | timedelta) — The desired resolution of the data
  • selector (Callable[IBaseData, float], optional) — x.Value)
  • field_name (str, optional) — The name of the field being selected
Returns:

A new Identity indicator for the specified symbol and selector

Return type:

Identity

iv(symbol, mirror_option=None, risk_free_rate=None, dividend_yield=None, option_model=0, period=252, resolution=None)[source]

Creates a new ImpliedVolatility indicator for the symbol The indicator will be automatically updated on the symbol's subscription resolution

Parameters:
  • symbol (Symbol) — The option symbol whose values we want as an indicator
  • mirror_option (Symbol, optional) — The mirror option contract used for parity type calculation
  • risk_free_rate (float, optional) — The risk free rate
  • dividend_yield (float, optional) — The dividend yield
  • option_model (OptionPricingModelType, optional) — The option pricing model used to estimate IV
  • period (int, optional) — The lookback period of historical volatility
  • resolution (Resolution, optional) — The desired resolution of the data
Returns:

A new ImpliedVolatility indicator for the specified symbol

Return type:

ImpliedVolatility

kama(symbol, period, fast_ema_period, slow_ema_period, resolution=None, selector=None)[source]

Creates a new KaufmanAdaptiveMovingAverage indicator.

Parameters:
  • symbol (Symbol) — The symbol whose KAMA we want
  • period (int) — The period of the Efficiency Ratio (ER)
  • fast_ema_period (int) — The period of the fast EMA used to calculate the Smoothing Constant (SC)
  • slow_ema_period (int) — The period of the slow EMA used to calculate the Smoothing Constant (SC)
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, float], optional) — x.Value)
Returns:

The KaufmanAdaptiveMovingAverage indicator for the requested symbol over the specified period

Return type:

KaufmanAdaptiveMovingAverage

kch(symbol, period, k, moving_average_type=0, resolution=None, selector=None)[source]

Creates a new Keltner Channels indicator. The indicator will be automatically updated on the given resolution.

Parameters:
  • symbol (Symbol) — The symbol whose Keltner Channel we seek
  • period (int) — The period over which to compute the Keltner Channels
  • k (float) — from the middle band of the Keltner Channels
  • moving_average_type (MovingAverageType, optional) — Specifies the type of moving average to be used as the middle line of the Keltner Channel
  • resolution (Resolution, optional) — The resolution.
  • selector (Callable[IBaseData, IBaseDataBar], optional) — Selects a value from the BaseData to send into the indicator, if null defaults to casting the input value to a TradeBar
Returns:

The Keltner Channel indicator for the requested symbol.

Return type:

KeltnerChannels

ker(symbol, period=2, resolution=None, selector=None)[source]

Creates an KaufmanEfficiencyRatio indicator for the symbol. The indicator will be automatically updated on the given resolution.

Parameters:
  • symbol (Symbol) — The symbol whose EF we want
  • period (int, optional) — The period of the EF
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, float], optional) — x.Value)
Returns:

The KaufmanEfficiencyRatio indicator for the given parameters

Return type:

KaufmanEfficiencyRatio

logr(symbol, period, resolution=None, selector=None)[source]

Creates a new LogReturn indicator.

Parameters:
  • symbol (Symbol) — The symbol whose log return we seek
  • period (int) — The period of the log return.
  • resolution (Resolution, optional) — The resolution.
  • selector (Callable[IBaseData, float], optional) — Selects a value from the BaseData to send into the indicator, if null defaults to casting the input value to a TradeBar.
Returns:

log return indicator for the requested symbol.

Return type:

LogReturn

lsma(symbol, period, resolution=None, selector=None)[source]

Creates and registers a new Least Squares Moving Average instance.

Parameters:
  • symbol (Symbol) — The symbol whose LSMA we seek.
  • period (int) — The LSMA period. Normally 14.
  • resolution (Resolution, optional) — The resolution.
  • selector (Callable[IBaseData, float], optional) — Selects a value from the BaseData to send into the indicator, if null defaults to casting the input value to a TradeBar.
Returns:

A LeastSquaredMovingAverage configured with the specified period

Return type:

LeastSquaresMovingAverage

lwma(symbol, period, resolution=None, selector=None)[source]

Creates a new LinearWeightedMovingAverage indicator. This indicator will linearly distribute the weights across the periods.

Parameters:
  • symbol (Symbol) — The symbol whose LWMA we want
  • period (int) — The period over which to compute the LWMA
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, float], optional) — x.Value)
Return type:

LinearWeightedMovingAverage

macd(symbol, fast_period, slow_period, signal_period, type=1, resolution=None, selector=None)[source]

Creates a MACD indicator for the symbol. The indicator will be automatically updated on the given resolution.

Parameters:
  • symbol (Symbol) — The symbol whose MACD we want
  • fast_period (int) — The period for the fast moving average
  • slow_period (int) — The period for the slow moving average
  • signal_period (int) — The period for the signal moving average
  • type (MovingAverageType, optional) — The type of moving average to use for the MACD
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, float], optional) — x.Value)
Returns:

The moving average convergence divergence between the fast and slow averages

Return type:

MovingAverageConvergenceDivergence

mad(symbol, period, resolution=None, selector=None)[source]

Creates a new MeanAbsoluteDeviation indicator.

Parameters:
  • symbol (Symbol) — The symbol whose MeanAbsoluteDeviation we want
  • period (int) — The period over which to compute the MeanAbsoluteDeviation
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, float], optional) — x.Value)
Returns:

The MeanAbsoluteDeviation indicator for the requested symbol over the specified period

Return type:

MeanAbsoluteDeviation

mass(symbol, ema_period=9, sum_period=25, resolution=None, selector=None)[source]

Creates a new Mass Index indicator. The indicator will be automatically updated on the given resolution.

Parameters:
  • symbol (Symbol) — The symbol whose Mass Index we want.
  • ema_period (int, optional) — The period used by both EMA.
  • sum_period (int, optional) — The sum period.
  • resolution (Resolution, optional) — The resolution.
  • selector (Callable[IBaseData, TradeBar], optional) — Selects a value from the BaseData to send into the indicator, if null defaults to casting the input value to a TradeBar
Returns:

The Mass Index indicator for the requested symbol over the specified period

Return type:

MassIndex

max(symbol, period, resolution=None, selector=None)[source]

Creates a new Maximum indicator to compute the maximum value

Parameters:
  • symbol (Symbol) — The symbol whose max we want
  • period (int) — The look back period over which to compute the max value
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, float], optional) — x.Value)
Returns:

A Maximum indicator that compute the max value and the periods since the max value

Return type:

Maximum

mfi(symbol, period, resolution=None, selector=None)[source]

Creates a new MoneyFlowIndex indicator. The indicator will be automatically updated on the given resolution.

Parameters:
  • symbol (Symbol) — The symbol whose MFI we want
  • period (int) — The period over which to compute the MFI
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, TradeBar], optional) — Selects a value from the BaseData to send into the indicator, if null defaults to casting the input value to a TradeBar
Returns:

The MoneyFlowIndex indicator for the requested symbol over the specified period

Return type:

MoneyFlowIndex

midpoint(symbol, period, resolution=None, selector=None)[source]

Creates a new MidPoint indicator.

Parameters:
  • symbol (Symbol) — The symbol whose MIDPOINT we want
  • period (int) — The period over which to compute the MIDPOINT
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, float], optional) — x.Value)
Returns:

The MidPoint indicator for the requested symbol over the specified period

Return type:

MidPoint

midprice(symbol, period, resolution=None, selector=None)[source]

Creates a new MidPrice indicator.

Parameters:
  • symbol (Symbol) — The symbol whose MIDPRICE we want
  • period (int) — The period over which to compute the MIDPRICE
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, IBaseDataBar], optional) — Selects a value from the BaseData to send into the indicator, if null defaults to casting the input value to a TradeBar
Returns:

The MidPrice indicator for the requested symbol over the specified period

Return type:

MidPrice

min(symbol, period, resolution=None, selector=None)[source]

Creates a new Minimum indicator to compute the minimum value

Parameters:
  • symbol (Symbol) — The symbol whose min we want
  • period (int) — The look back period over which to compute the min value
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, float], optional) — x.Value)
Returns:

A Minimum indicator that compute the in value and the periods since the min value

Return type:

Minimum

mom(symbol, period, resolution=None, selector=None)[source]

Creates a new Momentum indicator. This will compute the absolute n-period change in the security. The indicator will be automatically updated on the given resolution.

Parameters:
  • symbol (Symbol) — The symbol whose momentum we want
  • period (int) — The period over which to compute the momentum
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, float], optional) — x.Value)
Returns:

The momentum indicator for the requested symbol over the specified period

Return type:

Momentum

momersion(symbol, min_period, full_period, resolution=None, selector=None)[source]

Creates a new Momersion indicator.

Parameters:
  • symbol (Symbol) — The symbol whose Momersion we want
  • min_period (int) — The minimum period over which to compute the Momersion. Must be greater than 3. If null, only full period will be used in computations.
  • full_period (int) — The full period over which to compute the Momersion
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, float], optional) — x.Value)
Returns:

The Momersion indicator for the requested symbol over the specified period

Return type:

MomersionIndicator

momp(symbol, period, resolution=None, selector=None)[source]

Creates a new MomentumPercent indicator. This will compute the n-period percent change in the security. The indicator will be automatically updated on the given resolution.

Parameters:
  • symbol (Symbol) — The symbol whose momentum we want
  • period (int) — The period over which to compute the momentum
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, float], optional) — x.Value)
Returns:

The momentum indicator for the requested symbol over the specified period

Return type:

MomentumPercent

mosc(symbols, fast_period=19, slow_period=39, resolution=None, selector=None)[source]

Creates a new McClellan Oscillator indicator

Parameters:
  • symbols (Symbol[] | List[Symbol]) — The symbols whose McClellan Oscillator we want
  • fast_period (int, optional) — Fast period EMA of advance decline difference
  • slow_period (int, optional) — Slow period EMA of advance decline difference
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, TradeBar], optional) — Selects a value from the BaseData to send into the indicator, if null defaults to casting the input value to a TradeBar
Returns:

The McClellan Oscillator indicator for the requested symbol over the specified period

Return type:

McClellanOscillator

msi(symbols, fast_period=19, slow_period=39, resolution=None, selector=None)[source]

Creates a new McClellan Summation Index indicator

Parameters:
  • symbols (Symbol[] | List[Symbol]) — The symbols whose McClellan Summation Index we want
  • fast_period (int, optional) — Fast period EMA of advance decline difference
  • slow_period (int, optional) — Slow period EMA of advance decline difference
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, TradeBar], optional) — Selects a value from the BaseData to send into the indicator, if null defaults to casting the input value to a TradeBar
Returns:

The McClellan Summation Index indicator for the requested symbol over the specified period

Return type:

McClellanSummationIndex

natr(symbol, period, resolution=None, selector=None)[source]

Creates a new NormalizedAverageTrueRange indicator.

Parameters:
  • symbol (Symbol) — The symbol whose NATR we want
  • period (int) — The period over which to compute the NATR
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, IBaseDataBar], optional) — Selects a value from the BaseData to send into the indicator, if null defaults to casting the input value to a TradeBar
Returns:

The NormalizedAverageTrueRange indicator for the requested symbol over the specified period

Return type:

NormalizedAverageTrueRange

obv(symbol, resolution=None, selector=None)[source]

Creates a new On Balance Volume indicator. This will compute the cumulative total volume based on whether the close price being higher or lower than the previous period. The indicator will be automatically updated on the given resolution.

Parameters:
  • symbol (Symbol) — The symbol whose On Balance Volume we seek
  • resolution (Resolution, optional) — The resolution.
  • selector (Callable[IBaseData, TradeBar], optional) — Selects a value from the BaseData to send into the indicator, if null defaults to casting the input value to a TradeBar
Returns:

The On Balance Volume indicator for the requested symbol.

Return type:

OnBalanceVolume

pphl(symbol, length_high, length_low, last_stored_values=100, resolution=None, selector=None)[source]

Creates a new PivotPointsHighLow indicator

Parameters:
  • symbol (Symbol) — The symbol whose PPHL we seek
  • length_high (int) — The number of surrounding bars whose high values should be less than the current bar's for the bar high to be marked as high pivot point
  • length_low (int) — The number of surrounding bars whose low values should be more than the current bar's for the bar low to be marked as low pivot point
  • last_stored_values (int, optional) — The number of last stored indicator values
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, IBaseDataBar], optional) — Selects a value from the BaseData to send into the indicator, if null defaults to casting the input value to a TradeBar
Returns:

The PivotPointsHighLow indicator for the requested symbol.

Return type:

PivotPointsHighLow

ppo(symbol, fast_period, slow_period, moving_average_type, resolution=None, selector=None)[source]

Creates a new PercentagePriceOscillator indicator.

Parameters:
  • symbol (Symbol) — The symbol whose PPO we want
  • fast_period (int) — The fast moving average period
  • slow_period (int) — The slow moving average period
  • moving_average_type (MovingAverageType) — The type of moving average to use
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, float], optional) — x.Value)
Returns:

The PercentagePriceOscillator indicator for the requested symbol over the specified period

Return type:

PercentagePriceOscillator

psar(symbol, af_start=0.02, af_increment=0.02, af_max=0.2, resolution=None, selector=None)[source]

Creates a new Parabolic SAR indicator

Parameters:
  • symbol (Symbol) — The symbol whose PSAR we seek
  • af_start (float, optional) — Acceleration factor start value. Normally 0.02
  • af_increment (float, optional) — Acceleration factor increment value. Normally 0.02
  • af_max (float, optional) — Acceleration factor max value. Normally 0.2
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, IBaseDataBar], optional) — Selects a value from the BaseData to send into the indicator, if null defaults to casting the input value to a TradeBar
Returns:

A ParabolicStopAndReverse configured with the specified periods

Return type:

ParabolicStopAndReverse

r(symbol, mirror_option=None, risk_free_rate=None, dividend_yield=None, option_model=0, iv_model=None, resolution=None)[source]

Removes the security with the specified symbol. This will cancel all open orders and then liquidate any existing holdings

Parameters:
  • symbol (Symbol) — The option symbol whose values we want as an indicator
  • mirror_option (Symbol, optional) — The mirror option for parity calculation
  • risk_free_rate (float, optional) — The risk free rate
  • dividend_yield (float, optional) — The dividend yield
  • option_model (OptionPricingModelType, optional) — The option pricing model used to estimate Rho
  • iv_model (OptionPricingModelType, optional) — The option pricing model used to estimate IV
  • resolution (Resolution, optional) — The desired resolution of the data
Returns:

A new Rho indicator for the specified symbol

Return type:

Rho

rc(symbol, period, k, resolution=None, selector=None)[source]

Creates a new RegressionChannel indicator which will compute the LinearRegression, UpperChannel and LowerChannel lines, the intercept and slope

Parameters:
  • symbol (Symbol) — The symbol whose RegressionChannel we seek
  • period (int) — The period of the standard deviation and least square moving average (linear regression line)
  • k (float) — The number of standard deviations specifying the distance between the linear regression and upper or lower channel lines
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, float], optional) — x.Value)
Returns:

A Regression Channel configured with the specified period and number of standard deviation

Return type:

RegressionChannel

rdv(symbol, period=2, resolution=4, selector=None)[source]

Creates an RelativeDailyVolume indicator for the symbol. The indicator will be automatically updated on the given resolution.

Parameters:
  • symbol (Symbol) — The symbol whose RDV we want
  • period (int, optional) — The period of the RDV
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, TradeBar], optional) — Selects a value from the BaseData to send into the indicator, if null defaults to casting the input value to a TradeBar
Returns:

The Relative Volume indicator for the given parameters

Return type:

RelativeDailyVolume

register_indicator(symbol, indicator, resolution, selector)[source]

Creates and registers a new consolidator to receive automatic updates at the specified resolution as well as configures the indicator to receive updates from the consolidator.

Parameters:
  • symbol (Symbol) — The symbol to register against
  • indicator (None | PyObject | IndicatorBase[IndicatorDataPoint]) — The indicator to receive data from the consolidator
  • resolution (Optional[timedelta] | Optional[Resolution]) — The resolution at which to send data to the indicator, null to use the same resolution as the subscription
  • selector (Callable[IBaseData, float] | None | PyObject) — (T)x)
register_indicator(symbol, indicator, py_object, selector=None)[source]

Creates and registers a new consolidator to receive automatic updates at the specified resolution as well as configures the indicator to receive updates from the consolidator.

Parameters:
  • symbol (Symbol) — The symbol to register against
  • indicator (PyObject) — The indicator to receive data from the consolidator
  • py_object (PyObject) — The python object that it is trying to register with, could be consolidator or a timespan
  • selector (PyObject, optional) — (T)x)
register_indicator(symbol, indicator, consolidator, selector=None)[source]

Creates and registers a new consolidator to receive automatic updates at the specified resolution as well as configures the indicator to receive updates from the consolidator.

Parameters:
  • symbol (Symbol) — The symbol to register against
  • indicator (None | PyObject | IndicatorBase[IndicatorDataPoint]) — The indicator to receive data from the consolidator
  • consolidator (IDataConsolidator) — The consolidator to receive raw subscription data
  • selector (Callable[IBaseData, float] | None | PyObject, optional) — (T)x)
rma(symbol, period, resolution=None, selector=None)[source]

Creates a new Relative Moving Average indicator for the symbol. The indicator will be automatically updated on the given resolution.

Parameters:
  • symbol (Symbol) — The symbol whose relative moving average we seek
  • period (int) — The period of the relative moving average
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, float], optional) — x.Value)
Returns:

A relative moving average configured with the specified period and number of standard deviation

Return type:

RelativeMovingAverage

roc(symbol, period, resolution=None, selector=None)[source]

Creates a new RateOfChange indicator. This will compute the n-period rate of change in the security. The indicator will be automatically updated on the given resolution.

Parameters:
  • symbol (Symbol) — The symbol whose RateOfChange we want
  • period (int) — The period over which to compute the RateOfChange
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, float], optional) — x.Value)
Returns:

The RateOfChange indicator for the requested symbol over the specified period

Return type:

RateOfChange

rocp(symbol, period, resolution=None, selector=None)[source]

Creates a new RateOfChangePercent indicator. This will compute the n-period percentage rate of change in the security. The indicator will be automatically updated on the given resolution.

Parameters:
  • symbol (Symbol) — The symbol whose RateOfChangePercent we want
  • period (int) — The period over which to compute the RateOfChangePercent
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, float], optional) — x.Value)
Returns:

The RateOfChangePercent indicator for the requested symbol over the specified period

Return type:

RateOfChangePercent

rocr(symbol, period, resolution=None, selector=None)[source]

Creates a new RateOfChangeRatio indicator.

Parameters:
  • symbol (Symbol) — The symbol whose ROCR we want
  • period (int) — The period over which to compute the ROCR
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, float], optional) — x.Value)
Returns:

The RateOfChangeRatio indicator for the requested symbol over the specified period

Return type:

RateOfChangeRatio

rsi(symbol, period, moving_average_type=2, resolution=None, selector=None)[source]

Creates a new RelativeStrengthIndex indicator. This will produce an oscillator that ranges from 0 to 100 based on the ratio of average gains to average losses over the specified period.

Parameters:
  • symbol (Symbol) — The symbol whose RSI we want
  • period (int) — The period over which to compute the RSI
  • moving_average_type (MovingAverageType, optional) — The type of moving average to use in computing the average gainloss values
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, float], optional) — x.Value)
Returns:

The RelativeStrengthIndex indicator for the requested symbol over the specified period

Return type:

RelativeStrengthIndex

rvi(symbol, period, moving_average_type=0, resolution=None, selector=None)[source]

Creates a new RelativeVigorIndex indicator.

Parameters:
  • symbol (Symbol) — The symbol whose RVI we want
  • period (int) — The period over which to compute the RVI
  • moving_average_type (MovingAverageType, optional) — The type of moving average to use
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, TradeBar], optional) — Selects a value from the BaseData to send into the indicator, if null defaults to casting the input value to a TradeBar
Returns:

The RelativeVigorIndex indicator for the requested symbol over the specified period

Return type:

RelativeVigorIndex

si(symbol, limit_move, resolution=4, selector=None)[source]

Creates a Wilder Swing Index (SI) indicator for the symbol. The indicator will be automatically updated on the given resolution.

Parameters:
  • symbol (Symbol) — The symbol whose SI we want
  • limit_move (float) — The maximum daily change in price for the SI
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, TradeBar], optional) — Selects a value from the BaseData to send into the indicator, if null defaults to casting the input value to a TradeBar
Returns:

The WilderSwingIndex for the given parameters

Return type:

WilderSwingIndex

sma(symbol, period, resolution=None, selector=None)[source]

Creates an SimpleMovingAverage indicator for the symbol. The indicator will be automatically updated on the given resolution.

Parameters:
  • symbol (Symbol) — The symbol whose SMA we want
  • period (int) — The period of the SMA
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, float], optional) — x.Value)
Returns:

The SimpleMovingAverage for the given parameters

Return type:

SimpleMovingAverage

sortino(symbol, sortino_period, minimum_acceptable_return=0.0, resolution=None, selector=None)[source]

Creates a new Sortino indicator.

Parameters:
  • symbol (Symbol) — The symbol whose Sortino we want
  • sortino_period (int) — Period of historical observation for Sortino ratio calculation
  • minimum_acceptable_return (float, optional) — Minimum acceptable return (eg risk-free rate) for the Sortino ratio calculation
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, float], optional) — x.Value)
Returns:

The SortinoRatio indicator for the requested symbol over the specified period

Return type:

SortinoRatio

sr(symbol, sharpe_period, risk_free_rate=None, resolution=None, selector=None)[source]

Creates a new SharpeRatio indicator.

Parameters:
  • symbol (Symbol) — The symbol whose RSR we want
  • sharpe_period (int) — Period of historical observation for sharpe ratio calculation
  • risk_free_rate (float, optional) —
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, float], optional) — x.Value)
Returns:

The SharpeRatio indicator for the requested symbol over the specified period

Return type:

SharpeRatio

stc(symbol, cycle_period, fast_period, slow_period, moving_average_type=1, resolution=None, selector=None)[source]

Creates a new Schaff Trend Cycle indicator

Parameters:
  • symbol (Symbol) — The symbol for the indicator to track
  • cycle_period (int) — The fast moving average period
  • fast_period (int) — The slow moving average period
  • slow_period (int) — The signal period
  • moving_average_type (MovingAverageType, optional) — The type of moving average to use
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, float], optional) — x.Value)
Returns:

The SchaffTrendCycle indicator for the requested symbol over the specified period

Return type:

SchaffTrendCycle

std(symbol, period, resolution=None, selector=None)[source]

Creates a new StandardDeviation indicator. This will return the population standard deviation of samples over the specified period.

Parameters:
  • symbol (Symbol) — The symbol whose STD we want
  • period (int) — The period over which to compute the STD
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, float], optional) — x.Value)
Returns:

The StandardDeviation indicator for the requested symbol over the specified period

Return type:

StandardDeviation

sto(symbol, period, k_period, d_period, resolution=None, selector=None)[source]

Creates a new Stochastic indicator.

Parameters:
  • symbol (Symbol) — The symbol whose stochastic we seek
  • period (int) — The period of the stochastic. Normally 14
  • k_period (int) — The sum period of the stochastic. Normally 14
  • d_period (int) — The sum period of the stochastic. Normally 3
  • resolution (Resolution, optional) — The resolution.
  • selector (Callable[IBaseData, TradeBar], optional) — Selects a value from the BaseData to send into the indicator, if null defaults to casting the input value to a TradeBar
Returns:

Stochastic indicator for the requested symbol.

Return type:

Stochastic

str(symbol, period, multiplier, moving_average_type=2, resolution=None, selector=None)[source]

Creates a new SuperTrend indicator.

Parameters:
  • symbol (Symbol) — The symbol whose SuperTrend indicator we want.
  • period (int) — The smoothing period for average true range.
  • multiplier (float) — Multiplier to calculate basic upper and lower bands width.
  • moving_average_type (MovingAverageType, optional) — Smoother type for average true range, defaults to Wilders.
  • resolution (Resolution, optional) — The resolution.
  • selector (Callable[IBaseData, IBaseDataBar], optional) — Selects a value from the BaseData to send into the indicator, if null defaults to casting the input value to a TradeBar
Return type:

SuperTrend

sum(symbol, period, resolution=None, selector=None)[source]

Creates a new Sum indicator.

Parameters:
  • symbol (Symbol) — The symbol whose Sum we want
  • period (int) — The period over which to compute the Sum
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, float], optional) — x.Value)
Returns:

The Sum indicator for the requested symbol over the specified period

Return type:

Sum

swiss(symbol, period, delta, tool, resolution=None, selector=None)[source]

Creates Swiss Army Knife transformation for the symbol. The indicator will be automatically updated on the given resolution.

Parameters:
  • symbol (Symbol) — The symbol to use for calculations
  • period (int) — The period of the calculation
  • delta (float) — The delta scale of the BandStop or BandPass
  • tool (SwissArmyKnifeTool) — The tool os the Swiss Army Knife
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, float], optional) — x.Value)
Returns:

The calculation using the given tool

Return type:

SwissArmyKnife

t(symbol, mirror_option=None, risk_free_rate=None, dividend_yield=None, option_model=0, iv_model=None, resolution=None)[source]

For the given symbol will resolve the ticker it used at the current algorithm date

Parameters:
  • symbol (Symbol) — The option symbol whose values we want as an indicator
  • mirror_option (Symbol, optional) — The mirror option for parity calculation
  • risk_free_rate (float, optional) — The risk free rate
  • dividend_yield (float, optional) — The dividend yield
  • option_model (OptionPricingModelType, optional) — The option pricing model used to estimate Theta
  • iv_model (OptionPricingModelType, optional) — The option pricing model used to estimate IV
  • resolution (Resolution, optional) — The desired resolution of the data
Returns:

A new Theta indicator for the specified symbol

Return type:

Theta

t_3(symbol, period, volume_factor=0.7, resolution=None, selector=None)[source]

Creates a new T3MovingAverage indicator.

Parameters:
  • symbol (Symbol) — The symbol whose T3 we want
  • period (int) — The period over which to compute the T3
  • volume_factor (float, optional) — The volume factor to be used for the T3 (value must be in the [0,1] range, defaults to 0.7)
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, float], optional) — x.Value)
Returns:

The T3MovingAverage indicator for the requested symbol over the specified period

Return type:

T3MovingAverage

tdd(symbol, period, minimum_acceptable_return=0.0, resolution=None, selector=None)[source]

Creates a new TargetDownsideDeviation indicator. The target downside deviation is defined as the root-mean-square, or RMS, of the deviations of the realized return’s underperformance from the target return where all returns above the target return are treated as underperformance of 0.

Parameters:
  • symbol (Symbol) — The symbol whose TDD we want
  • period (int) — The period over which to compute the TDD
  • minimum_acceptable_return (float, optional) — The resolution
  • resolution (Resolution, optional) — Minimum acceptable return (MAR) for the target downside deviation calculation
  • selector (Callable[IBaseData, float], optional) — x.Value)
Returns:

The TargetDownsideDeviation indicator for the requested symbol over the specified period

Return type:

TargetDownsideDeviation

tema(symbol, period, resolution=None, selector=None)[source]

Creates a new TripleExponentialMovingAverage indicator.

Parameters:
  • symbol (Symbol) — The symbol whose TEMA we want
  • period (int) — The period over which to compute the TEMA
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, float], optional) — x.Value)
Returns:

The TripleExponentialMovingAverage indicator for the requested symbol over the specified period

Return type:

TripleExponentialMovingAverage

tp(symbol, period=2, value_area_volume_percentage=0.7, price_range_round_off=0.05, resolution=4, selector=None)[source]

Creates an Market Profile indicator for the symbol with Time Price Opportunity (TPO) mode. The indicator will be automatically updated on the given resolution.

Parameters:
  • symbol (Symbol) — The symbol whose TP we want
  • period (int, optional) — The period of the TP
  • value_area_volume_percentage (float, optional) — The percentage of volume contained in the value area
  • price_range_round_off (float, optional) — How many digits you want to round and the precision. i.e 0.01 round to two digits exactly.
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, TradeBar], optional) — Selects a value from the BaseData to send into the indicator, if null defaults to casting the input value to a TradeBar
Returns:

The Time Profile indicator for the given parameters

Return type:

TimeProfile

tr(symbol, resolution=None, selector=None)[source]

Creates a new TrueRange indicator.

Parameters:
  • symbol (Symbol) — The symbol whose TR we want
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, IBaseDataBar], optional) — Selects a value from the BaseData to send into the indicator, if null defaults to casting the input value to a TradeBar
Returns:

The TrueRange indicator for the requested symbol.

Return type:

TrueRange

trima(symbol, period, resolution=None, selector=None)[source]

Creates a new TriangularMovingAverage indicator.

Parameters:
  • symbol (Symbol) — The symbol whose TRIMA we want
  • period (int) — The period over which to compute the TRIMA
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, float], optional) — x.Value)
Returns:

The TriangularMovingAverage indicator for the requested symbol over the specified period

Return type:

TriangularMovingAverage

trin(symbols, resolution=None, selector=None)[source]

Creates a new Arms Index indicator

Parameters:
  • symbols (Symbol[] | List[Symbol]) — The symbols whose Arms Index we want
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, TradeBar], optional) — Selects a value from the BaseData to send into the indicator, if null defaults to casting the input value to a TradeBar
Returns:

The Arms Index indicator for the requested symbol over the specified period

Return type:

ArmsIndex

trix(symbol, period, resolution=None, selector=None)[source]

Creates a new Trix indicator.

Parameters:
  • symbol (Symbol) — The symbol whose TRIX we want
  • period (int) — The period over which to compute the TRIX
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, float], optional) — x.Value)
Returns:

The Trix indicator for the requested symbol over the specified period

Return type:

Trix

tsf(symbol, period, resolution=None, selector=None)[source]

Creates a new Time Series Forecast indicator

Parameters:
  • symbol (Symbol) — The symbol whose TSF we want
  • period (int) — The period of the TSF
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, float], optional) — x.Value)
Returns:

The TimeSeriesForecast indicator for the requested symbol over the specified period

Return type:

TimeSeriesForecast

tsi(symbol, long_term_period=25, short_term_period=13, signal_period=7, signal_type=1, resolution=None, selector=None)[source]

Creates a TrueStrengthIndex indicator for the symbol. The indicator will be automatically updated on the given resolution.

Parameters:
  • symbol (Symbol) — The symbol whose TSI we want
  • long_term_period (int, optional) — Period used for the first price change smoothing
  • short_term_period (int, optional) — Period used for the second (double) price change smoothing
  • signal_period (int, optional) — The signal period
  • signal_type (MovingAverageType, optional) — The type of moving average to use for the signal
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, float], optional) — x.Value)
Returns:

The TrueStrengthIndex indicator for the given parameters

Return type:

TrueStrengthIndex

ultosc(symbol, period_1, period_2, period_3, resolution=None, selector=None)[source]

Creates a new UltimateOscillator indicator.

Parameters:
  • symbol (Symbol) — The symbol whose ULTOSC we want
  • period_1 (int) — The first period over which to compute the ULTOSC
  • period_2 (int) — The second period over which to compute the ULTOSC
  • period_3 (int) — The third period over which to compute the ULTOSC
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, IBaseDataBar], optional) — Selects a value from the BaseData to send into the indicator, if null defaults to casting the input value to a TradeBar
Returns:

The UltimateOscillator indicator for the requested symbol over the specified period

Return type:

UltimateOscillator

v(symbol, mirror_option=None, risk_free_rate=None, dividend_yield=None, option_model=0, iv_model=None, resolution=None)[source]

Creates an Market Profile indicator for the symbol with Volume Profile (VOL) mode. The indicator will be automatically updated on the given resolution.

Parameters:
  • symbol (Symbol) — The option symbol whose values we want as an indicator
  • mirror_option (Symbol, optional) — The mirror option for parity calculation
  • risk_free_rate (float, optional) — The risk free rate
  • dividend_yield (float, optional) — The dividend yield
  • option_model (OptionPricingModelType, optional) — The option pricing model used to estimate Vega
  • iv_model (OptionPricingModelType, optional) — The option pricing model used to estimate IV
  • resolution (Resolution, optional) — The desired resolution of the data
Returns:

A new Vega indicator for the specified symbol

Return type:

Vega

v(symbol, period, resolution=None, selector=None)[source]

Creates an Market Profile indicator for the symbol with Volume Profile (VOL) mode. The indicator will be automatically updated on the given resolution.

Parameters:
  • symbol (Symbol) — The symbol whose variance we want
  • period (int) — The period over which to compute the variance
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, float], optional) — x.Value)
Returns:

The Variance indicator for the requested symbol over the specified period

Return type:

Variance

vidya(symbol, period, resolution=None, selector=None)[source]

Creates a new Chande's Variable Index Dynamic Average indicator.

Parameters:
  • symbol (Symbol) — The symbol whose VIDYA we want
  • period (int) — The period over which to compute the VIDYA
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, float], optional) — x.Value)
Returns:

The VariableIndexDynamicAverage indicator for the requested symbol over the specified period

Return type:

VariableIndexDynamicAverage

vp(symbol, period=2, value_area_volume_percentage=0.7, price_range_round_off=0.05, resolution=4, selector=None)[source]

Creates an Market Profile indicator for the symbol with Volume Profile (VOL) mode. The indicator will be automatically updated on the given resolution.

Parameters:
  • symbol (Symbol) — The symbol whose VP we want
  • period (int, optional) — The period of the VP
  • value_area_volume_percentage (float, optional) — The percentage of volume contained in the value area
  • price_range_round_off (float, optional) — How many digits you want to round and the precision. i.e 0.01 round to two digits exactly.
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, TradeBar], optional) — Selects a value from the BaseData to send into the indicator, if null defaults to casting the input value to a TradeBar
Returns:

The Volume Profile indicator for the given parameters

Return type:

VolumeProfile

vwap(symbol, period, resolution=None, selector=None)[source]

Creates an VolumeWeightedAveragePrice (VWAP) indicator for the symbol. The indicator will be automatically updated on the given resolution.

Parameters:
  • symbol (Symbol) — The symbol whose VWAP we want
  • period (int) — The period of the VWAP
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, TradeBar], optional) — Selects a value from the BaseData to send into the indicator, if null defaults to casting the input value to a TradeBar
Returns:

The VolumeWeightedAveragePrice for the given parameters

Return type:

VolumeWeightedAveragePriceIndicator | IntradayVwap

warm_up_indicator(symbol, indicator, resolution=None, selector=None)[source]

Warms up a given indicator with historical data

Parameters:
  • symbol (Symbol) — The symbol whose indicator we want
  • indicator (None | PyObject | IndicatorBase[IndicatorDataPoint]) — The indicator we want to warm up
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, float] | None | PyObject, optional) — (T)x)
wilr(symbol, period, resolution=None, selector=None)[source]

Creates a new Williams %R indicator. This will compute the percentage change of the current closing price in relation to the high and low of the past N periods. The indicator will be automatically updated on the given resolution.

Parameters:
  • symbol (Symbol) — The symbol whose Williams %R we want
  • period (int) — The period over which to compute the Williams %R
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, IBaseDataBar], optional) — Selects a value from the BaseData to send into the indicator, if null defaults to casting the input value to a TradeBar
Returns:

The Williams %R indicator for the requested symbol over the specified period

Return type:

WilliamsPercentR

wwma(symbol, period, resolution=None, selector=None)[source]

Creates a WilderMovingAverage indicator for the symbol. The indicator will be automatically updated on the given resolution.

Parameters:
  • symbol (Symbol) — The symbol whose WMA we want
  • period (int) — The period of the WMA
  • resolution (Resolution, optional) — The resolution
  • selector (Callable[IBaseData, float], optional) — x.Value)
Returns:

The WilderMovingAverage for the given parameters

Return type:

WilderMovingAverage

γ(symbol, mirror_option=None, risk_free_rate=None, dividend_yield=None, option_model=0, iv_model=None, resolution=None)[source]

Creates a new Gamma indicator for the symbol The indicator will be automatically updated on the symbol's subscription resolution

Parameters:
  • symbol (Symbol) — The option symbol whose values we want as an indicator
  • mirror_option (Symbol, optional) — The mirror option for parity calculation
  • risk_free_rate (float, optional) — The risk free rate
  • dividend_yield (float, optional) — The dividend yield
  • option_model (OptionPricingModelType, optional) — The option pricing model used to estimate Gamma
  • iv_model (OptionPricingModelType, optional) — The option pricing model used to estimate IV
  • resolution (Resolution, optional) — The desired resolution of the data
Returns:

A new Gamma indicator for the specified symbol

Return type:

Gamma

δ(symbol, mirror_option=None, risk_free_rate=None, dividend_yield=None, option_model=0, iv_model=None, resolution=None)[source]

Creates a new Delta indicator for the symbol The indicator will be automatically updated on the symbol's subscription resolution

Parameters:
  • symbol (Symbol) — The option symbol whose values we want as an indicator
  • mirror_option (Symbol, optional) — The mirror option for parity calculation
  • risk_free_rate (float, optional) — The risk free rate
  • dividend_yield (float, optional) — The dividend yield
  • option_model (OptionPricingModelType, optional) — The option pricing model used to estimate Delta
  • iv_model (OptionPricingModelType, optional) — The option pricing model used to estimate IV
  • resolution (Resolution, optional) — The desired resolution of the data
Returns:

A new Delta indicator for the specified symbol

Return type:

Delta

θ(symbol, mirror_option=None, risk_free_rate=None, dividend_yield=None, option_model=0, iv_model=None, resolution=None)[source]

Creates a new Theta indicator for the symbol The indicator will be automatically updated on the symbol's subscription resolution

Parameters:
  • symbol (Symbol) — The option symbol whose values we want as an indicator
  • mirror_option (Symbol, optional) — The mirror option for parity calculation
  • risk_free_rate (float, optional) — The risk free rate
  • dividend_yield (float, optional) — The dividend yield
  • option_model (OptionPricingModelType, optional) — The option pricing model used to estimate Theta
  • iv_model (OptionPricingModelType, optional) — The option pricing model used to estimate IV
  • resolution (Resolution, optional) — The desired resolution of the data
Returns:

A new Theta indicator for the specified symbol

Return type:

Theta

ρ(symbol, mirror_option=None, risk_free_rate=None, dividend_yield=None, option_model=0, iv_model=None, resolution=None)[source]

Creates a new Rho indicator for the symbol The indicator will be automatically updated on the symbol's subscription resolution

Parameters:
  • symbol (Symbol) — The option symbol whose values we want as an indicator
  • mirror_option (Symbol, optional) — The mirror option for parity calculation
  • risk_free_rate (float, optional) — The risk free rate
  • dividend_yield (float, optional) — The dividend yield
  • option_model (OptionPricingModelType, optional) — The option pricing model used to estimate Rho
  • iv_model (OptionPricingModelType, optional) — The option pricing model used to estimate IV
  • resolution (Resolution, optional) — The desired resolution of the data
Returns:

A new Rho indicator for the specified symbol

Return type:

Rho

property candlestick_patterns[source]

Gets an instance to access the candlestick pattern helper methods

Returns:

Gets an instance to access the candlestick pattern helper methods

Return type:

CandlestickPatterns

property enable_automatic_indicator_warm_up[source]

Gets whether or not WarmUpIndicator is allowed to warm up indicators/>

Returns:

Gets whether or not WarmUpIndicator is allowed to warm up indicators/>

Return type:

bool

Live Trading

Live Trading

on_brokerage_disconnect()[source]

Brokerage disconnected event handler. This method is called when the brokerage connection is lost.

on_brokerage_message(message_event)[source]

Brokerage message event handler. This method is called for all types of brokerage messages.

Parameters:
on_brokerage_reconnect()[source]

Brokerage reconnected event handler. This method is called when the brokerage connection is restored after a disconnection.

set_live_mode(live)[source]

Set live mode state of the algorithm run: Public setter for the algorithm property LiveMode.

Parameters:
  • live (bool)
set_status(status)[source]

Set the state of a live deployment

Parameters:
property live_mode[source]

Boolean property indicating the algorithm is currently running in live mode.

Returns:

Boolean property indicating the algorithm is currently running in live mode.

Return type:

bool

property notify[source]

Notification Manager for Sending Live Runtime Notifications to users about important events.

Returns:

Notification Manager for Sending Live Runtime Notifications to users about important events.

Return type:

NotificationManager

Logging

Logging

debug(message)[source]

Send a debug message to the web console:

Parameters:
  • message (str | int | float | PyObject) — Message to send to debug console
error(message)[source]

Send a string error message to the Console.

Parameters:
  • message (str | int | float | PyObject) — Message to display in errors grid
error(error)[source]

Send a string error message to the Console.

Parameters:
  • error (Exception) — Exception object captured from a try catch loop
log(message)[source]

Added another method for logging if user guessed.

Parameters:
  • message (str | int | float | PyObject) — String message to log.
quit(message)[source]

Terminate the algorithm after processing the current event handler.

Parameters:
  • message (str | PyObject) — Exit message to display on quitting
set_quit(quit)[source]

Set the Quit flag property of the algorithm.

Parameters:
  • quit (bool) — Boolean quit state
property debug_messages[source]

Storage for debugging messages before the event handler has passed control back to the Lean Engine.

Returns:

Storage for debugging messages before the event handler has passed control back to the Lean Engine.

Return type:

List[str]

property debug_mode[source]

Enables additional logging of framework models including: All insights, portfolio targets, order events, and any risk management altered targets

Returns:

Enables additional logging of framework models including: All insights, portfolio targets, order events, and any risk management altered targets

Return type:

bool

property error_messages[source]

List of error messages generated by the user's code calling the "Error" function.

Returns:

List of error messages generated by the user's code calling the "Error" function.

Return type:

List[str]

property log_messages[source]

Storage for log messages before the event handlers have passed control back to the Lean Engine.

Returns:

Storage for log messages before the event handlers have passed control back to the Lean Engine.

Return type:

List[str]

property run_time_error[source]

Gets the run time error from the algorithm, or null if none was encountered.

Returns:

Gets the run time error from the algorithm, or null if none was encountered.

Return type:

Exception

Machine Learning

Machine Learning

train(date_rule, time_rule, training_code)[source]

Schedules the provided training code to execute immediately

Parameters:
  • date_rule (IDateRule) — Specifies what dates the event should run
  • time_rule (ITimeRule) — Specifies the times on those dates the event should run
  • training_code (Action | PyObject) — The training code to be invoked
Return type:

ScheduledEvent

Modeling

Modeling

on_margin_call(requests)[source]

Margin call event handler. This method is called right before the margin call orders are placed in the market.

Parameters:
  • requests (List[SubmitOrderRequest]) — The orders to be executed to bring this algorithm within margin limits
on_margin_call_warning()[source]

Margin call warning event handler. This method is called when Portfolio.MarginRemaining is under 5% of your Portfolio.TotalPortfolioValue

set_brokerage_message_handler(handler)[source]

Sets the implementation used to handle messages from the brokerage. The default implementation will forward messages to debug or error and when a Error occurs, the algorithm is stopped.

Parameters:
  • handler (PyObject | IBrokerageMessageHandler) — The message handler to use
set_brokerage_model(brokerage, account_type=0)[source]

Sets the brokerage to emulate in backtesting or paper trading. This can be used for brokerages that have been implemented in LEAN

Parameters:
  • brokerage (BrokerageName) — The brokerage to emulate
  • account_type (AccountType, optional) — The account type (Cash or Margin)
set_brokerage_model(model)[source]

Sets the brokerage to emulate in backtesting or paper trading. This can be used for brokerages that have been implemented in LEAN

Parameters:
  • model (IBrokerageModel | PyObject) — The brokerage model to use
set_risk_free_interest_rate_model(model)[source]

Sets the risk free interest rate model to be used in the algorithm

Parameters:
  • model (PyObject | IRiskFreeInterestRateModel) — The risk free interest rate model to use
property brokerage_message_handler[source]

Gets the brokerage message handler used to decide what to do with each message sent from the brokerage

Returns:

Gets the brokerage message handler used to decide what to do with each message sent from the brokerage

Return type:

IBrokerageMessageHandler

property brokerage_model[source]

Gets the brokerage model - used to model interactions with specific brokerages.

Returns:

Gets the brokerage model - used to model interactions with specific brokerages.

Return type:

IBrokerageModel

property brokerage_name[source]

Gets the brokerage name.

Returns:

Gets the brokerage name.

Return type:

BrokerageName

property risk_free_interest_rate_model[source]

Gets the risk free interest rate model used to get the interest rates

Returns:

Gets the risk free interest rate model used to get the interest rates

Return type:

IRiskFreeInterestRateModel

Parameter and Optimization

Parameter and Optimization

get_parameter(name, default_value)[source]

Gets the parameter with the specified name. If a parameter with the specified name does not exist, the given default value is returned if any, else null

Parameters:
  • name (str) — The name of the parameter to get
  • default_value (str | int | float) — The default value to return
Returns:

The value of the specified parameter, or defaultValue if not found or null if there's no default value

Return type:

str | int | float | float

get_parameters()[source]

Gets a read-only dictionary with all current parameters

Return type:

IReadOnlyDict[str, str]

set_parameters(parameters)[source]

Sets the parameters from the dictionary

Parameters:
  • parameters (Dict[str, str]) — Dictionary containing the parameter names to values

Scheduled Events

Scheduled Events

property date_rules[source]

Gets the date rules helper object to make specifying dates for events easier

Returns:

Gets the date rules helper object to make specifying dates for events easier

Return type:

DateRules

property schedule[source]

Gets schedule manager for adding/removing scheduled events

Returns:

Gets schedule manager for adding/removing scheduled events

Return type:

ScheduleManager

property time_rules[source]

Gets the time rules helper object to make specifying times for events easier

Returns:

Gets the time rules helper object to make specifying times for events easier

Return type:

TimeRules

property trading_calendar[source]

Gets trading calendar populated with trading events

Returns:

Gets trading calendar populated with trading events

Return type:

TradingCalendar

Securities and Portfolio

Securities and Portfolio

set_account_currency(account_currency, starting_cash=None)[source]

Sets the account currency cash symbol this algorithm is to manage, as well as the starting cash in this currency if given

Parameters:
  • account_currency (str) — The account currency cash symbol to set
  • starting_cash (float, optional) — The account currency starting cash to set
set_cash(symbol, starting_cash, conversion_rate=0.0)[source]

Set initial cash for the strategy while backtesting. During live mode this value is ignored and replaced with the actual cash of your brokerage account.

Parameters:
  • symbol (str) — The cash symbol to set
  • starting_cash (int | float) — Decimal cash value of portfolio
  • conversion_rate (float, optional) — The current conversion rate for the
property account_currency[source]

Gets the account currency

Returns:

Gets the account currency

Return type:

str

property active_securities[source]

Read-only dictionary containing all active securities. An active security is a security that is currently selected by the universe or has holdings or open orders.

Returns:

Read-only dictionary containing all active securities. An active security is a security that is currently selected by the universe or has holdings or open orders.

Return type:

IReadOnlyDict[Symbol, Security]

property portfolio[source]

Portfolio object provieds easy access to the underlying security-holding properties; summed together in a way to make them useful. This saves the user time by providing common portfolio requests in a single

Returns:

Portfolio object provieds easy access to the underlying security-holding properties; summed together in a way to make them useful. This saves the user time by providing common portfolio requests in a single

Return type:

SecurityPortfolioManager

property securities[source]

Security collection is an array of the security objects such as Equities and FOREX. Securities data manages the properties of tradeable assets such as price, open and close time and holdings information.

Returns:

Security collection is an array of the security objects such as Equities and FOREX. Securities data manages the properties of tradeable assets such as price, open and close time and holdings information.

Return type:

SecurityManager

property signal_export[source]

SignalExport - Allows sending export signals to different 3rd party API's. For example, it allows to send signals to Collective2, CrunchDAO and Numerai API's

Returns:

SignalExport - Allows sending export signals to different 3rd party API's. For example, it allows to send signals to Collective2, CrunchDAO and Numerai API's

Return type:

SignalExportManager

Statistics

Statistics

set_summary_statistic(name, value)[source]

Set a custom summary statistic for the algorithm.

Parameters:
  • name (str) — Name of the custom summary statistic
  • value (str | int | float) — Value of the custom summary statistic
property statistics[source]

The current statistics for the running algorithm.

Returns:

The current statistics for the running algorithm.

Return type:

StatisticsResults

Trading and Orders

Trading and Orders

buy(strategy, quantity, asynchronous=False, tag=, order_properties=None)[source]

Buy Stock (Alias of Order)

Parameters:
  • strategy (OptionStrategy) — Specification of the strategy to trade
  • quantity (int) — Quantity of the strategy to trade
  • asynchronous (bool, optional) — Send the order asynchronously (false). Otherwise we'll block until it fills
  • tag (str, optional) — String tag for the order (optional)
  • order_properties (IOrderProperties, optional)
Returns:

Sequence of order tickets

Return type:

List[OrderTicket]

buy(symbol, quantity)[source]

Buy Stock (Alias of Order)

Parameters:
  • symbol (Symbol) — string Symbol of the asset to trade
  • quantity (int | float) — int Quantity of the asset to trade
Returns:

The order ticket instance.

Return type:

OrderTicket

calculate_order_quantity(symbol, target)[source]

Calculate the order quantity to achieve target-percent holdings.

Parameters:
  • symbol (Symbol) — Security object we're asking for
  • target (float) — Target percentage holdings
Returns:

Order quantity to achieve this percentage

Return type:

float

combo_leg_limit_order(legs, quantity, tag=, order_properties=None)[source]

Issue a combo leg limit order/trade for multiple assets, each having its own limit price.

Parameters:
  • legs (List[Leg]) — The list of legs the order consists of
  • quantity (int) — The total quantity for the order
  • tag (str, optional) — String tag for the order (optional)
  • order_properties (IOrderProperties, optional)
Returns:

Sequence of order tickets, one for each leg

Return type:

List[OrderTicket]

combo_limit_order(legs, quantity, limit_price, tag=, order_properties=None)[source]

Issue a combo limit order/trade for multiple assets. A single limit price is defined for the combo order and will fill only if the sum of the assets price compares properly to the limit price, depending on the direction.

Parameters:
  • legs (List[Leg]) — The list of legs the order consists of
  • quantity (int) — The total quantity for the order
  • limit_price (float) — The compound limit price to use for a ComboLimit order. This limit price will compared to the sum of the assets price in order to fill the order.
  • tag (str, optional) — String tag for the order (optional)
  • order_properties (IOrderProperties, optional)
Returns:

Sequence of order tickets, one for each leg

Return type:

List[OrderTicket]

combo_market_order(legs, quantity, asynchronous=False, tag=, order_properties=None)[source]

Issue a combo market order/trade for multiple assets

Parameters:
  • legs (List[Leg]) — The list of legs the order consists of
  • quantity (int) — The total quantity for the order
  • asynchronous (bool, optional) — Send the order asynchronously (false). Otherwise we'll block until it fills
  • tag (str, optional) — String tag for the order (optional)
  • order_properties (IOrderProperties, optional)
Returns:

Sequence of order tickets, one for each leg

Return type:

List[OrderTicket]

exercise_option(option_symbol, quantity, asynchronous=False, tag=, order_properties=None)[source]

Send an exercise order to the transaction handler

Parameters:
  • option_symbol (Symbol) — String symbol for the option position
  • quantity (int) — Quantity of options contracts
  • asynchronous (bool, optional) — Send the order asynchronously (false). Otherwise we'll block until it fills
  • tag (str, optional) — String tag for the order (optional)
  • order_properties (IOrderProperties, optional)
Returns:

The order ticket instance.

Return type:

OrderTicket

is_market_open(symbol)[source]

Determines if the exchange for the specified symbol is open at the current time.

Parameters:
  • symbol (Symbol) — The symbol
Returns:

True if the exchange is considered open at the current time, false otherwise

Return type:

bool

limit_if_touched_order(symbol, quantity, trigger_price, limit_price, tag=, order_properties=None)[source]

Send a limit if touched order to the transaction handler:

Parameters:
  • symbol (Symbol) — String symbol for the asset
  • quantity (int | float) — Quantity of shares for limit order
  • trigger_price (float) — Trigger price for this order
  • limit_price (float) — Limit price to fill this order
  • tag (str, optional) — String tag for the order (optional)
  • order_properties (IOrderProperties, optional)
Returns:

The order ticket instance.

Return type:

OrderTicket

limit_order(symbol, quantity, limit_price, tag=, order_properties=None)[source]

Send a limit order to the transaction handler:

Parameters:
  • symbol (Symbol) — String symbol for the asset
  • quantity (int | float) — Quantity of shares for limit order
  • limit_price (float) — Limit price to fill this order
  • tag (str, optional) — String tag for the order (optional)
  • order_properties (IOrderProperties, optional)
Returns:

The order ticket instance.

Return type:

OrderTicket

liquidate(symbol_to_liquidate=None, tag=Liquidated)[source]

Liquidate all holdings and cancel open orders. Called at the end of day for tick-strategies.

Parameters:
  • symbol_to_liquidate (Symbol, optional) — Symbols we wish to liquidate
  • tag (str, optional) — Custom tag to know who is calling this.
Returns:

Array of order ids for liquidated symbols

Return type:

List[int]

market_on_close_order(symbol, quantity, tag=, order_properties=None)[source]

Market on close order implementation: Send a market order when the exchange closes

Parameters:
  • symbol (Symbol) — The symbol to be ordered
  • quantity (int | float) — The number of shares to required
  • tag (str, optional) — Place a custom order property or tag (e.g. indicator data).
  • order_properties (IOrderProperties, optional)
Returns:

The order ticket instance.

Return type:

OrderTicket

market_on_open_order(symbol, quantity, tag=, order_properties=None)[source]

Market on open order implementation: Send a market order when the exchange opens

Parameters:
  • symbol (Symbol) — The symbol to be ordered
  • quantity (int | float) — The number of shares to required
  • tag (str, optional) — Place a custom order property or tag (e.g. indicator data).
  • order_properties (IOrderProperties, optional)
Returns:

The order ticket instance.

Return type:

OrderTicket

market_order(symbol, quantity, asynchronous=False, tag=, order_properties=None)[source]

Market order implementation: Send a market order and wait for it to be filled.

Parameters:
  • symbol (Symbol) — Symbol of the MarketType Required.
  • quantity (int | float) — Number of shares to request.
  • asynchronous (bool, optional) — Send the order asynchronously (false). Otherwise we'll block until it fills
  • tag (str, optional) — Place a custom order property or tag (e.g. indicator data).
  • order_properties (IOrderProperties, optional)
Returns:

The order ticket instance.

Return type:

OrderTicket

market_order(security, quantity, asynchronous=False, tag=, order_properties=None)[source]

Market order implementation: Send a market order and wait for it to be filled.

Parameters:
  • security (Security) — Symbol of the MarketType Required.
  • quantity (float) — Number of shares to request.
  • asynchronous (bool, optional) — Send the order asynchronously (false). Otherwise we'll block until it fills
  • tag (str, optional) — Place a custom order property or tag (e.g. indicator data).
  • order_properties (IOrderProperties, optional)
Returns:

The order ticket instance.

Return type:

OrderTicket

on_assignment_order_event(assignment_event)[source]

Option assignment event handler. On an option assignment event for short legs the resulting information is passed to this method.

Parameters:
  • assignment_event (OrderEvent) — Option exercise event details containing details of the assignment
on_order_event(order_event)[source]

Order fill event handler. On an order fill update the resulting information is passed to this method.

Parameters:
  • order_event (OrderEvent) — Order event details containing details of the events
order(strategy, quantity, asynchronous=False, tag=, order_properties=None)[source]

Issue an order/trade for asset: Alias wrapper for Order(string, int);

Parameters:
  • strategy (OptionStrategy) — Specification of the strategy to trade
  • quantity (int) — Quantity of the strategy to trade
  • asynchronous (bool, optional) — Send the order asynchronously (false). Otherwise we'll block until it fills
  • tag (str, optional) — String tag for the order (optional)
  • order_properties (IOrderProperties, optional)
Returns:

Sequence of order tickets

Return type:

List[OrderTicket]

order(symbol, quantity, asynchronous=False, tag=, order_properties=None)[source]

Issue an order/trade for asset: Alias wrapper for Order(string, int);

Parameters:
  • symbol (Symbol) — Symbol of the MarketType Required.
  • quantity (int | float) — Number of shares to request.
  • asynchronous (bool, optional) — Send the order asynchronously (false). Otherwise we'll block until it fills
  • tag (str, optional) — Place a custom order property or tag (e.g. indicator data).
  • order_properties (IOrderProperties, optional)
Returns:

The order ticket instance.

Return type:

OrderTicket

sell(strategy, quantity, asynchronous=False, tag=, order_properties=None)[source]

Sell stock (alias of Order)

Parameters:
  • strategy (OptionStrategy) — Specification of the strategy to trade
  • quantity (int) — Quantity of the strategy to trade
  • asynchronous (bool, optional) — Send the order asynchronously (false). Otherwise we'll block until it fills
  • tag (str, optional) — String tag for the order (optional)
  • order_properties (IOrderProperties, optional)
Returns:

Sequence of order tickets

Return type:

List[OrderTicket]

sell(symbol, quantity)[source]

Sell stock (alias of Order)

Parameters:
  • symbol (Symbol) — string Symbol of the asset to trade
  • quantity (int | float) — int Quantity of the asset to trade
Returns:

The order ticket instance.

Return type:

OrderTicket

set_benchmark(benchmark)[source]

Sets the benchmark used for computing statistics of the algorithm to the specified symbol

Parameters:
  • benchmark (PyObject | Callable[datetime, float]) — The benchmark producing function
set_benchmark(ticker)[source]

Sets the benchmark used for computing statistics of the algorithm to the specified symbol

Parameters:
  • ticker (str) — Ticker to use as the benchmark
set_benchmark(symbol)[source]

Sets the benchmark used for computing statistics of the algorithm to the specified symbol

Parameters:
  • symbol (Symbol) — symbol to use as the benchmark
set_holdings(symbol, percentage, liquidate_existing_holdings=False, tag=, order_properties=None)[source]

Sets holdings for a collection of targets. The implementation will order the provided targets executing first those that reduce a position, freeing margin.

Parameters:
  • symbol (Symbol) — string symbol we wish to hold
  • percentage (int | float) — double percentage of holdings desired
  • liquidate_existing_holdings (bool, optional) — liquidate existing holdings if necessary to hold this stock
  • tag (str, optional) — Tag the order with a short string.
  • order_properties (IOrderProperties, optional)
set_holdings(targets, liquidate_existing_holdings=False, tag=, order_properties=None)[source]

Sets holdings for a collection of targets. The implementation will order the provided targets executing first those that reduce a position, freeing margin.

Parameters:
  • targets (List[PortfolioTarget]) — The portfolio desired quantities as percentages
  • liquidate_existing_holdings (bool, optional) — True will liquidate existing holdings
  • tag (str, optional) — Tag the order with a short string.
  • order_properties (IOrderProperties, optional)
set_maximum_orders(max)[source]

Maximum number of orders for the algorithm

Parameters:
  • max (int)
set_trade_builder(trade_builder)[source]

Set the ITradeBuilder implementation to generate trades from executions and market price updates

Parameters:
  • trade_builder (ITradeBuilder)
shortable(symbol, short_quantity, update_order_id=None)[source]

Determines if the Symbol is shortable at the brokerage

Parameters:
  • symbol (Symbol) — Symbol to check if shortable
  • short_quantity (float) — Order's quantity to check if it is currently shortable, taking into account current holdings and open orders
  • update_order_id (int, optional) — Optionally the id of the order being updated. When updating an order we want to ignore it's submitted short quantity and use the new provided quantity to determine if we can perform the update
Returns:

True if the symbol can be shorted by the requested quantity

Return type:

bool

shortable_quantity(symbol)[source]

Gets the quantity shortable for the given asset

Parameters:
Returns:

Quantity shortable for the given asset. Zero if not shortable, or a number greater than zero if shortable.

Return type:

int

stop_limit_order(symbol, quantity, stop_price, limit_price, tag=, order_properties=None)[source]

Send a stop limit order to the transaction handler:

Parameters:
  • symbol (Symbol) — String symbol for the asset
  • quantity (int | float) — Quantity of shares for limit order
  • stop_price (float) — Stop price for this order
  • limit_price (float) — Limit price to fill this order
  • tag (str, optional) — String tag for the order (optional)
  • order_properties (IOrderProperties, optional)
Returns:

The order ticket instance.

Return type:

OrderTicket

stop_market_order(symbol, quantity, stop_price, tag=, order_properties=None)[source]

Create a stop market order and return the newly created order id; or negative if the order is invalid

Parameters:
  • symbol (Symbol) — String symbol for the asset we're trading
  • quantity (int | float) — Quantity to be traded
  • stop_price (float) — Price to fill the stop order
  • tag (str, optional) — Optional string data tag for the order
  • order_properties (IOrderProperties, optional)
Returns:

The order ticket instance.

Return type:

OrderTicket

submit_order_request(request)[source]

Will submit an order request to the algorithm

Parameters:
Returns:

The order ticket

Return type:

OrderTicket

trailing_stop_order(symbol, quantity, stop_price, trailing_amount, trailing_as_percentage, tag=, order_properties=None)[source]

Create a trailing stop order and return the newly created order id; or negative if the order is invalid. It will calculate the stop price using the trailing amount and the current market price.

Parameters:
  • symbol (Symbol) — Trading asset symbol
  • quantity (int | float) — Quantity to be traded
  • stop_price (float) — Initial stop price at which the order should be triggered
  • trailing_amount (float) — The trailing amount to be used to update the stop price
  • trailing_as_percentage (bool) — is a percentage or an absolute currency value
  • tag (str, optional) — is a percentage or an absolute currency value
  • order_properties (IOrderProperties, optional) — Optional string data tag for the order
Returns:

The order ticket instance.

Return type:

OrderTicket

property benchmark[source]

Benchmark

Returns:

Benchmark

Return type:

IBenchmark

property default_order_properties[source]

Gets the default order properties

Returns:

Gets the default order properties

Return type:

IOrderProperties

property trade_builder[source]

Gets the Trade Builder to generate trades from executions

Returns:

Gets the Trade Builder to generate trades from executions

Return type:

ITradeBuilder

property transactions[source]

Transaction Manager - Process transaction fills and order management.

Returns:

Transaction Manager - Process transaction fills and order management.

Return type:

SecurityTransactionManager

Universes

Universes

add_universe(t, security_type, name, resolution, market, universe_settings, selector)[source]

Adds a new universe selection model

Parameters:
  • t (PyObject) — The data type
  • security_type (SecurityType) — The security type the universe produces
  • name (str) — A unique name for this universe
  • resolution (Optional[Resolution] | Resolution) — The expected resolution of the universe data
  • market (str) — The market for selected symbols
  • universe_settings (UniverseSettings) — The subscription settings to use for newly created subscriptions
  • selector (List[BaseData, Symbol] | List[BaseData, str] | List[datetime, str] | PyObject | List[Fundamental, Symbol]) — Function delegate that performs selection on the universe data
Return type:

Universe

add_universe(data_type, security_type, name, resolution, market, universe_settings, py_selector)[source]

Adds a new universe selection model

Parameters:
  • data_type (Type) — The data type
  • security_type (Optional[SecurityType] | SecurityType) — The security type the universe produces
  • name (str) — A unique name for this universe
  • resolution (Optional[Resolution] | Resolution) — The expected resolution of the universe data
  • market (str) — The market for selected symbols
  • universe_settings (UniverseSettings) — The subscription settings to use for newly created subscriptions
  • py_selector (PyObject) — Function delegate that performs selection on the universe data
Return type:

Universe

add_universe(date_rule, selector)[source]

Adds a new universe selection model

Parameters:
  • date_rule (IDateRule)
  • selector (List[BaseData, str] | List[Fundamental, Symbol] | List[BaseData, Symbol]) — Defines an initial coarse selection
Return type:

Universe

add_universe(coarse_selector, fine_selector)[source]

Adds a new universe selection model

Parameters:
  • coarse_selector (Callable[List[CoarseFundamental], List[Symbol]]) — Defines an initial coarse selection
  • fine_selector (Callable[List[FineFundamental], List[Symbol]]) — Defines a more detailed selection with access to more data
Return type:

Universe

add_universe(universe, fine_selector)[source]

Adds a new universe selection model

Parameters:
  • universe (Universe) — The universe to be filtered with fine fundamental selection
  • fine_selector (Callable[List[Fundamental], List[Symbol]]) — Defines a more detailed selection with access to more data
Return type:

Universe

add_universe(py_object, pyfine)[source]

Adds a new universe selection model

Parameters:
  • py_object (PyObject) — Defines an initial coarse selection or a universe
  • pyfine (PyObject) — Defines a more detailed selection with access to more data
Return type:

Universe

add_universe_options(underlying_symbol, option_filter)[source]

Creates a new universe selection model and adds it to the algorithm. This universe selection model will chain to the security changes of a given Universe selection output and create a new for each of them

Parameters:
  • underlying_symbol (Symbol) — Underlying Symbol to add as an option. For Futures, the option chain constructed will be per-contract, as long as a canonical Symbol is provided.
  • option_filter (Callable[OptionFilterUniverse, OptionFilterUniverse]) — User-defined filter used to select the options we want out of the option chain provided.
add_universe_options(universe, option_filter)[source]

Creates a new universe selection model and adds it to the algorithm. This universe selection model will chain to the security changes of a given Universe selection output and create a new for each of them

Parameters:
  • universe (Universe | PyObject) — The universe we want to chain an option universe selection model too
  • option_filter (PyObject | Callable[OptionFilterUniverse, OptionFilterUniverse]) — The option filter universe to use
property universe[source]

Gets a helper that provides pre-defined universe definitions, such as top dollar volume

Returns:

Gets a helper that provides pre-defined universe definitions, such as top dollar volume

Return type:

UniverseDefinitions

property universe_manager[source]

Gets universe manager which holds universes keyed by their symbol

Returns:

Gets universe manager which holds universes keyed by their symbol

Return type:

UniverseManager

property universe_settings[source]

Gets the universe settings to be used when adding securities via universe selection

Returns:

Gets the universe settings to be used when adding securities via universe selection

Return type:

UniverseSettings

Types

Warning: include(/tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/Resources/qcalgorithm-api/{filename}): Failed to open stream: No such file or directory in /tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/03 Writing Algorithms/98 API Reference/19 Types.php on line 1 Warning: include(): Failed opening '/tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/Resources/qcalgorithm-api/{filename}' for inclusion (include_path='/var/www/beta/core/libraries/Google:/var/www/beta:.:/usr/share/php') in /tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/03 Writing Algorithms/98 API Reference/19 Types.php on line 1 Warning: include(/tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/Resources/qcalgorithm-api/{filename}): Failed to open stream: No such file or directory in /tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/03 Writing Algorithms/98 API Reference/19 Types.php on line 2 Warning: include(): Failed opening '/tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/Resources/qcalgorithm-api/{filename}' for inclusion (include_path='/var/www/beta/core/libraries/Google:/var/www/beta:.:/usr/share/php') in /tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/03 Writing Algorithms/98 API Reference/19 Types.php on line 2 Warning: include(/tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/Resources/qcalgorithm-api/{filename}): Failed to open stream: No such file or directory in /tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/03 Writing Algorithms/98 API Reference/19 Types.php on line 3 Warning: include(): Failed opening '/tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/Resources/qcalgorithm-api/{filename}' for inclusion (include_path='/var/www/beta/core/libraries/Google:/var/www/beta:.:/usr/share/php') in /tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/03 Writing Algorithms/98 API Reference/19 Types.php on line 3 Warning: include(/tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/Resources/qcalgorithm-api/{filename}): Failed to open stream: No such file or directory in /tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/03 Writing Algorithms/98 API Reference/19 Types.php on line 4 Warning: include(): Failed opening '/tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/Resources/qcalgorithm-api/{filename}' for inclusion (include_path='/var/www/beta/core/libraries/Google:/var/www/beta:.:/usr/share/php') in /tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/03 Writing Algorithms/98 API Reference/19 Types.php on line 4 Warning: include(/tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/Resources/qcalgorithm-api/{filename}): Failed to open stream: No such file or directory in /tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/03 Writing Algorithms/98 API Reference/19 Types.php on line 5 Warning: include(): Failed opening '/tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/Resources/qcalgorithm-api/{filename}' for inclusion (include_path='/var/www/beta/core/libraries/Google:/var/www/beta:.:/usr/share/php') in /tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/03 Writing Algorithms/98 API Reference/19 Types.php on line 5 Warning: include(/tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/Resources/qcalgorithm-api/{filename}): Failed to open stream: No such file or directory in /tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/03 Writing Algorithms/98 API Reference/19 Types.php on line 6 Warning: include(): Failed opening '/tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/Resources/qcalgorithm-api/{filename}' for inclusion (include_path='/var/www/beta/core/libraries/Google:/var/www/beta:.:/usr/share/php') in /tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/03 Writing Algorithms/98 API Reference/19 Types.php on line 6 Warning: include(/tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/Resources/qcalgorithm-api/{filename}): Failed to open stream: No such file or directory in /tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/03 Writing Algorithms/98 API Reference/19 Types.php on line 7 Warning: include(): Failed opening '/tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/Resources/qcalgorithm-api/{filename}' for inclusion (include_path='/var/www/beta/core/libraries/Google:/var/www/beta:.:/usr/share/php') in /tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/03 Writing Algorithms/98 API Reference/19 Types.php on line 7 Warning: include(/tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/Resources/qcalgorithm-api/{filename}): Failed to open stream: No such file or directory in /tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/03 Writing Algorithms/98 API Reference/19 Types.php on line 8 Warning: include(): Failed opening '/tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/Resources/qcalgorithm-api/{filename}' for inclusion (include_path='/var/www/beta/core/libraries/Google:/var/www/beta:.:/usr/share/php') in /tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/03 Writing Algorithms/98 API Reference/19 Types.php on line 8 Warning: include(/tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/Resources/qcalgorithm-api/{filename}): Failed to open stream: No such file or directory in /tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/03 Writing Algorithms/98 API Reference/19 Types.php on line 9 Warning: include(): Failed opening '/tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/Resources/qcalgorithm-api/{filename}' for inclusion (include_path='/var/www/beta/core/libraries/Google:/var/www/beta:.:/usr/share/php') in /tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/03 Writing Algorithms/98 API Reference/19 Types.php on line 9 Warning: include(/tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/Resources/qcalgorithm-api/{filename}): Failed to open stream: No such file or directory in /tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/03 Writing Algorithms/98 API Reference/19 Types.php on line 10 Warning: include(): Failed opening '/tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/Resources/qcalgorithm-api/{filename}' for inclusion (include_path='/var/www/beta/core/libraries/Google:/var/www/beta:.:/usr/share/php') in /tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/03 Writing Algorithms/98 API Reference/19 Types.php on line 10 Warning: include(/tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/Resources/qcalgorithm-api/{filename}): Failed to open stream: No such file or directory in /tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/03 Writing Algorithms/98 API Reference/19 Types.php on line 11 Warning: include(): Failed opening '/tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/Resources/qcalgorithm-api/{filename}' for inclusion (include_path='/var/www/beta/core/libraries/Google:/var/www/beta:.:/usr/share/php') in /tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/03 Writing Algorithms/98 API Reference/19 Types.php on line 11 Warning: include(/tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/Resources/qcalgorithm-api/{filename}): Failed to open stream: No such file or directory in /tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/03 Writing Algorithms/98 API Reference/19 Types.php on line 12 Warning: include(): Failed opening '/tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/Resources/qcalgorithm-api/{filename}' for inclusion (include_path='/var/www/beta/core/libraries/Google:/var/www/beta:.:/usr/share/php') in /tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/03 Writing Algorithms/98 API Reference/19 Types.php on line 12 Warning: include(/tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/Resources/qcalgorithm-api/{filename}): Failed to open stream: No such file or directory in /tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/03 Writing Algorithms/98 API Reference/19 Types.php on line 13 Warning: include(): Failed opening '/tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/Resources/qcalgorithm-api/{filename}' for inclusion (include_path='/var/www/beta/core/libraries/Google:/var/www/beta:.:/usr/share/php') in /tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/03 Writing Algorithms/98 API Reference/19 Types.php on line 13 Warning: include(/tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/Resources/qcalgorithm-api/{filename}): Failed to open stream: No such file or directory in /tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/03 Writing Algorithms/98 API Reference/19 Types.php on line 14 Warning: include(): Failed opening '/tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/Resources/qcalgorithm-api/{filename}' for inclusion (include_path='/var/www/beta/core/libraries/Google:/var/www/beta:.:/usr/share/php') in /tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/03 Writing Algorithms/98 API Reference/19 Types.php on line 14 Warning: include(/tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/Resources/qcalgorithm-api/{filename}): Failed to open stream: No such file or directory in /tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/03 Writing Algorithms/98 API Reference/19 Types.php on line 15 Warning: include(): Failed opening '/tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/Resources/qcalgorithm-api/{filename}' for inclusion (include_path='/var/www/beta/core/libraries/Google:/var/www/beta:.:/usr/share/php') in /tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/03 Writing Algorithms/98 API Reference/19 Types.php on line 15 Warning: include(/tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/Resources/qcalgorithm-api/{filename}): Failed to open stream: No such file or directory in /tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/03 Writing Algorithms/98 API Reference/19 Types.php on line 16 Warning: include(): Failed opening '/tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/Resources/qcalgorithm-api/{filename}' for inclusion (include_path='/var/www/beta/core/libraries/Google:/var/www/beta:.:/usr/share/php') in /tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/03 Writing Algorithms/98 API Reference/19 Types.php on line 16 Warning: include(/tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/Resources/qcalgorithm-api/{filename}): Failed to open stream: No such file or directory in /tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/03 Writing Algorithms/98 API Reference/19 Types.php on line 17 Warning: include(): Failed opening '/tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/Resources/qcalgorithm-api/{filename}' for inclusion (include_path='/var/www/beta/core/libraries/Google:/var/www/beta:.:/usr/share/php') in /tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/03 Writing Algorithms/98 API Reference/19 Types.php on line 17 Warning: include(/tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/Resources/qcalgorithm-api/{filename}): Failed to open stream: No such file or directory in /tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/03 Writing Algorithms/98 API Reference/19 Types.php on line 18 Warning: include(): Failed opening '/tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/Resources/qcalgorithm-api/{filename}' for inclusion (include_path='/var/www/beta/core/libraries/Google:/var/www/beta:.:/usr/share/php') in /tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/03 Writing Algorithms/98 API Reference/19 Types.php on line 18 Warning: include(/tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/Resources/qcalgorithm-api/{filename}): Failed to open stream: No such file or directory in /tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/03 Writing Algorithms/98 API Reference/19 Types.php on line 19 Warning: include(): Failed opening '/tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/Resources/qcalgorithm-api/{filename}' for inclusion (include_path='/var/www/beta/core/libraries/Google:/var/www/beta:.:/usr/share/php') in /tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/03 Writing Algorithms/98 API Reference/19 Types.php on line 19 Warning: include(/tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/Resources/qcalgorithm-api/{filename}): Failed to open stream: No such file or directory in /tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/03 Writing Algorithms/98 API Reference/19 Types.php on line 20 Warning: include(): Failed opening '/tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/Resources/qcalgorithm-api/{filename}' for inclusion (include_path='/var/www/beta/core/libraries/Google:/var/www/beta:.:/usr/share/php') in /tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/03 Writing Algorithms/98 API Reference/19 Types.php on line 20 Warning: include(/tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/Resources/qcalgorithm-api/{filename}): Failed to open stream: No such file or directory in /tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/03 Writing Algorithms/98 API Reference/19 Types.php on line 21 Warning: include(): Failed opening '/tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/Resources/qcalgorithm-api/{filename}' for inclusion (include_path='/var/www/beta/core/libraries/Google:/var/www/beta:.:/usr/share/php') in /tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/03 Writing Algorithms/98 API Reference/19 Types.php on line 21 Warning: include(/tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/Resources/qcalgorithm-api/{filename}): Failed to open stream: No such file or directory in /tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/03 Writing Algorithms/98 API Reference/19 Types.php on line 22 Warning: include(): Failed opening '/tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/Resources/qcalgorithm-api/{filename}' for inclusion (include_path='/var/www/beta/core/libraries/Google:/var/www/beta:.:/usr/share/php') in /tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/03 Writing Algorithms/98 API Reference/19 Types.php on line 22 Warning: include(/tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/Resources/qcalgorithm-api/{filename}): Failed to open stream: No such file or directory in /tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/03 Writing Algorithms/98 API Reference/19 Types.php on line 23 Warning: include(): Failed opening '/tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/Resources/qcalgorithm-api/{filename}' for inclusion (include_path='/var/www/beta/core/libraries/Google:/var/www/beta:.:/usr/share/php') in /tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/03 Writing Algorithms/98 API Reference/19 Types.php on line 23 Warning: include(/tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/Resources/qcalgorithm-api/{filename}): Failed to open stream: No such file or directory in /tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/03 Writing Algorithms/98 API Reference/19 Types.php on line 24 Warning: include(): Failed opening '/tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/Resources/qcalgorithm-api/{filename}' for inclusion (include_path='/var/www/beta/core/libraries/Google:/var/www/beta:.:/usr/share/php') in /tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/03 Writing Algorithms/98 API Reference/19 Types.php on line 24 Warning: include(/tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/Resources/qcalgorithm-api/{filename}): Failed to open stream: No such file or directory in /tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/03 Writing Algorithms/98 API Reference/19 Types.php on line 25 Warning: include(): Failed opening '/tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/Resources/qcalgorithm-api/{filename}' for inclusion (include_path='/var/www/beta/core/libraries/Google:/var/www/beta:.:/usr/share/php') in /tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/03 Writing Algorithms/98 API Reference/19 Types.php on line 25 Warning: include(/tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/Resources/qcalgorithm-api/{filename}): Failed to open stream: No such file or directory in /tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/03 Writing Algorithms/98 API Reference/19 Types.php on line 26 Warning: include(): Failed opening '/tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/Resources/qcalgorithm-api/{filename}' for inclusion (include_path='/var/www/beta/core/libraries/Google:/var/www/beta:.:/usr/share/php') in /tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/03 Writing Algorithms/98 API Reference/19 Types.php on line 26 Warning: include(/tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/Resources/qcalgorithm-api/{filename}): Failed to open stream: No such file or directory in /tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/03 Writing Algorithms/98 API Reference/19 Types.php on line 27 Warning: include(): Failed opening '/tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/Resources/qcalgorithm-api/{filename}' for inclusion (include_path='/var/www/beta/core/libraries/Google:/var/www/beta:.:/usr/share/php') in /tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/03 Writing Algorithms/98 API Reference/19 Types.php on line 27 Warning: include(/tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/Resources/qcalgorithm-api/{filename}): Failed to open stream: No such file or directory in /tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/03 Writing Algorithms/98 API Reference/19 Types.php on line 28 Warning: include(): Failed opening '/tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/Resources/qcalgorithm-api/{filename}' for inclusion (include_path='/var/www/beta/core/libraries/Google:/var/www/beta:.:/usr/share/php') in /tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/03 Writing Algorithms/98 API Reference/19 Types.php on line 28 Warning: include(/tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/Resources/qcalgorithm-api/{filename}): Failed to open stream: No such file or directory in /tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/03 Writing Algorithms/98 API Reference/19 Types.php on line 29 Warning: include(): Failed opening '/tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/Resources/qcalgorithm-api/{filename}' for inclusion (include_path='/var/www/beta/core/libraries/Google:/var/www/beta:.:/usr/share/php') in /tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/03 Writing Algorithms/98 API Reference/19 Types.php on line 29 Warning: include(/tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/Resources/qcalgorithm-api/{filename}): Failed to open stream: No such file or directory in /tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/03 Writing Algorithms/98 API Reference/19 Types.php on line 30 Warning: include(): Failed opening '/tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/Resources/qcalgorithm-api/{filename}' for inclusion (include_path='/var/www/beta/core/libraries/Google:/var/www/beta:.:/usr/share/php') in /tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/03 Writing Algorithms/98 API Reference/19 Types.php on line 30 Warning: include(/tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/Resources/qcalgorithm-api/{filename}): Failed to open stream: No such file or directory in /tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/03 Writing Algorithms/98 API Reference/19 Types.php on line 31 Warning: include(): Failed opening '/tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/Resources/qcalgorithm-api/{filename}' for inclusion (include_path='/var/www/beta/core/libraries/Google:/var/www/beta:.:/usr/share/php') in /tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/03 Writing Algorithms/98 API Reference/19 Types.php on line 31 Warning: include(/tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/Resources/qcalgorithm-api/{filename}): Failed to open stream: No such file or directory in /tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/03 Writing Algorithms/98 API Reference/19 Types.php on line 32 Warning: include(): Failed opening '/tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/Resources/qcalgorithm-api/{filename}' for inclusion (include_path='/var/www/beta/core/libraries/Google:/var/www/beta:.:/usr/share/php') in /tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/03 Writing Algorithms/98 API Reference/19 Types.php on line 32 Warning: include(/tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/Resources/qcalgorithm-api/{filename}): Failed to open stream: No such file or directory in /tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/03 Writing Algorithms/98 API Reference/19 Types.php on line 33 Warning: include(): Failed opening '/tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/Resources/qcalgorithm-api/{filename}' for inclusion (include_path='/var/www/beta/core/libraries/Google:/var/www/beta:.:/usr/share/php') in /tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/03 Writing Algorithms/98 API Reference/19 Types.php on line 33 Warning: include(/tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/Resources/qcalgorithm-api/{filename}): Failed to open stream: No such file or directory in /tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/03 Writing Algorithms/98 API Reference/19 Types.php on line 34 Warning: include(): Failed opening '/tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/Resources/qcalgorithm-api/{filename}' for inclusion (include_path='/var/www/beta/core/libraries/Google:/var/www/beta:.:/usr/share/php') in /tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/03 Writing Algorithms/98 API Reference/19 Types.php on line 34 Warning: include(/tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/Resources/qcalgorithm-api/{filename}): Failed to open stream: No such file or directory in /tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/03 Writing Algorithms/98 API Reference/19 Types.php on line 35 Warning: include(): Failed opening '/tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/Resources/qcalgorithm-api/{filename}' for inclusion (include_path='/var/www/beta/core/libraries/Google:/var/www/beta:.:/usr/share/php') in /tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/03 Writing Algorithms/98 API Reference/19 Types.php on line 35 Warning: include(/tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/Resources/qcalgorithm-api/{filename}): Failed to open stream: No such file or directory in /tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/03 Writing Algorithms/98 API Reference/19 Types.php on line 36 Warning: include(): Failed opening '/tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/Resources/qcalgorithm-api/{filename}' for inclusion (include_path='/var/www/beta/core/libraries/Google:/var/www/beta:.:/usr/share/php') in /tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/03 Writing Algorithms/98 API Reference/19 Types.php on line 36 Warning: include(/tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/Resources/qcalgorithm-api/{filename}): Failed to open stream: No such file or directory in /tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/03 Writing Algorithms/98 API Reference/19 Types.php on line 37 Warning: include(): Failed opening '/tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/Resources/qcalgorithm-api/{filename}' for inclusion (include_path='/var/www/beta/core/libraries/Google:/var/www/beta:.:/usr/share/php') in /tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/03 Writing Algorithms/98 API Reference/19 Types.php on line 37 Warning: include(/tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/Resources/qcalgorithm-api/{filename}): Failed to open stream: No such file or directory in /tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/03 Writing Algorithms/98 API Reference/19 Types.php on line 38 Warning: include(): Failed opening '/tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/Resources/qcalgorithm-api/{filename}' for inclusion (include_path='/var/www/beta/core/libraries/Google:/var/www/beta:.:/usr/share/php') in /tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/03 Writing Algorithms/98 API Reference/19 Types.php on line 38 Warning: include(/tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/Resources/qcalgorithm-api/{filename}): Failed to open stream: No such file or directory in /tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/03 Writing Algorithms/98 API Reference/19 Types.php on line 39 Warning: include(): Failed opening '/tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/Resources/qcalgorithm-api/{filename}' for inclusion (include_path='/var/www/beta/core/libraries/Google:/var/www/beta:.:/usr/share/php') in /tmp/docs/342e0509b2a18802721b2319ceceb3db9997dbdb/03 Writing Algorithms/98 API Reference/19 Types.php on line 39

You can also see our Videos. You can also get in touch with us via Discord.

Did you find this page helpful?

Contribute to the documentation: