Skip to main content
Main package of Indie language.

Decorators

@algorithm()

decorator

Overloads


@band()

decorator

Overloads


@data_context()

decorator

Overloads


@indicator()

decorator

Overloads


@level()

decorator

Overloads


@param_ref()

decorator

Overloads


param

type Class with decorators of indicator input parameters of various types.

Static methods


@sec_context()

decorator

Overloads


@strategy()

decorator

Overloads


Functions

request_series()

function

Overloads


Types

Algorithm

type Base class for the classes that perform some processing of series data.

Fields

Methods


Color

type Data type to represent color.

Methods

See also: color

Context

type Data type that represents an instrument with OHLCV series values and other related information.

Fields

Methods


DataContext[T]

type Base class for typed external data contexts. Objects of this class are created by the @data_context decorator; the rows of the external data source are available via the data property. An external data source carries no candles, so candle members like close or volume are not available in a DataContext.

Parent

Fields

Inherited fields

Inherited methods


IndieError

type Data type for Indie errors.

Methods


MainContext

type Base class for the class that represents main context.

Parent

Fields

Inherited fields

Inherited methods


MainStrategyContext

type Extended context object available in strategy functions decorated with @strategy. Inherits from MainContext and provides access to trading operations through the trading() method.

Fields

Inherited fields

Inherited methods


MutSeries[T]

type Generic data type that represents read-write series of values of type T. Type T can be float, int, str, or almost any other type.

Aliases

Parent

Methods

Static methods

Inherited methods


Optional[T]

type Builtin Indie type (similar to Python’s typing.Optional).

Methods


SecContext

type Base class for the classes that represent additional contexts besides the main one.

Parent

Inherited fields

Inherited methods


Series[T]

type Generic data type that represents read only series of values of type T. Type T can be float, int, str, or almost any other type.

Aliases

Methods


SymbolInfo

type Data type to represent information about the context’s instrument.

Fields

See also: Context

TimeFrame

type Data type that represents time frame.

Methods

Static methods


TradingSession

type Data type to represent different trading periods within a day, including pre-market, regular, and after-hours sessions. Each period is defined by its own schedule.

Fields

Methods


Var[T]

type Generic data type that represents a rollbackable container for value of type T. Type T can be float, int, str, or almost any other type.

Methods

Static methods


Enums

format

enum Enum-like class with constants that determine how to format the indicator value on the price scale.

Static fields

See also: @indicator()

line_style

enum Enum-like class with constants of line styles.

Static fields


source

enum Enum-like class with constants for various price sources (it is used in @indie.param.source).

Static fields

See also: @param.source()

time_frame_unit

enum Enum-like class with constants for time frame units.

Static fields

See also: TimeFrame