OhlcColumnConfig

Options & Configuration · AiDotNet.Models.Options

Configuration for OHLC (Open, High, Low, Close) column indices.

For Beginners

OHLC is standard financial data format:

  • Open: First price when trading started
  • High: Highest price during the period
  • Low: Lowest price during the period
  • Close: Last price when trading ended

These four values together tell the full story of price movement during each period. Volatility estimators like Parkinson and Garman-Klass use this information to more accurately measure how volatile (risky) an asset is.

How It Works

This class specifies which columns in your data contain OHLC prices, enabling proper calculation of volatility measures like Parkinson and Garman-Klass that require high/low/open/close values.

Constructors

Constructor Summary
OhlcColumnConfig()

Properties

Property Summary
bool HasHighLow { get; } Checks if this configuration has valid High/Low indices for Parkinson volatility.
bool HasOhlc { get; } Checks if this configuration has valid OHLC indices for Garman-Klass volatility.
int? CloseIndex { get; set; } Gets or sets the column index for Close prices.
int? HighIndex { get; set; } Gets or sets the column index for High prices.
int? LowIndex { get; set; } Gets or sets the column index for Low prices.
int? OpenIndex { get; set; } Gets or sets the column index for Open prices.

Methods

Method Summary
OhlcColumnConfig CreateHlc(int highIndex, int lowIndex, int closeIndex) Creates a configuration for data with only High, Low, Close (no Open).
OhlcColumnConfig CreateStandard() Creates a standard OHLC configuration assuming columns are in order: Open, High, Low, Close.