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
Name | Type | Summary |
---|---|---|
Close | Property | Close price series of historical trendbars. |
High | Property | Highest price series of historical trendbars. |
Low | Property | Low price series of historical trendbars. |
Median | Property | Median price series of historical trendbars. |
Open | Property | Open price series of historical trendbars. |
OpenTime | Property | Open Time series of historical trendbars. |
SymbolCode | Property | The code representation of the symbol that the MarketSeries is subscribed to |
TickVolume | Property | Volume of Ticks for Historical Trendbars |
TimeFrame | Property | The timeframe that the MarketSeries is subscribed to |
Typical | Property | Typical price series of historical trendbars. |
WeightedClose | Property | Weighted 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];