candle#

tradingstrategy.candle Python module in Trading Strategy framework.

Module description#

Tradind OHLCV candle data and manipulation.

See

  • Candle for information about OHLCV data presentation

  • tradingstrategy.client.Client.fetch_candle_universe() how to load OHLCV dataset

You are likely to working with candle datasets that are presented by

For more information about candles see candle in glossary.

Classes#

Candle

Data structure presenting one OHLCV trading candle.

CandleResult

Server-reply for live queried candle data.

GroupedCandleUniverse

A candle universe where each trading pair has its own candles.

TradingPairDataAvailability

Trading data availability description for a single pair.

Functions#

is_candle_green(candle)

Check if an OHLCV candle is green.

is_candle_red(candle)

Check if an OHLCV candle is green.