MarketSeries


Summary

Provides access to the market data such as the DataSeries Open, High, Low, Close.

Remarks

Access to the Open, Hight, Low, Close, Median, Typical, Weighted price series as well as OpenTime for the current symbol and time frame.

Syntax

public interface MarketSeries

Members

NameTypeSummary
Close PropertyClose price series of historical trendbars.
High PropertyHighest price series of historical trendbars.
Low PropertyLow price series of historical trendbars.
Median PropertyMedian price series of historical trendbars.
Open PropertyOpen price series of historical trendbars.
OpenTime PropertyOpen Time series of historical trendbars.
SymbolCode PropertyThe code representation of the symbol that the MarketSeries is subscribed to
TickVolume PropertyVolume of Ticks for Historical Trendbars
TimeFrame PropertyThe timeframe that the MarketSeries is subscribed to
Typical PropertyTypical price series of historical trendbars.
WeightedClose PropertyWeighted price series of historical trendbars.

Example 1

//Accessing historical OHLC prices from Indicators 
double close = MarketSeries.Close[index];
double high = MarketSeries.High[index];
double low = MarketSeries.Low[index];
double open = MarketSeries.Open[index];

Example 2

//Accessing historical O-H-L-C prices from Robots
int index = MarketSeries.Close.Count-1;
double close = MarketSeries.Close[index];
double high = MarketSeries.High[index];
double low = MarketSeries.Low[index];
double open = MarketSeries.Open[index];