Class IChartExtensions
- Namespace
- StockSharp.Charting
- Assembly
- StockSharp.Charting.Interfaces.dll
IChart extensions.
public static class IChartExtensions
- Inheritance
-
IChartExtensions
- Inherited Members
Fields
DefaultXAxisId
The primary title for the X-axis.
public const string DefaultXAxisId = "X"
Field Value
DefaultYAxisId
The primary title for the Y-axis.
public const string DefaultYAxisId = "Y"
Field Value
Properties
IndicatorPainterProvider
public static IChartIndicatorPainterProvider IndicatorPainterProvider { get; }
Property Value
IndicatorProvider
public static IIndicatorProvider IndicatorProvider { get; }
Property Value
TryIndicatorPainterProvider
public static IChartIndicatorPainterProvider TryIndicatorPainterProvider { get; }
Property Value
TryIndicatorProvider
public static IIndicatorProvider TryIndicatorProvider { get; }
Property Value
Methods
Add(IChartDrawDataItem, IChartCandleElement, ICandleMessage)
Put the candle data.
public static IChartDrawData.IChartDrawDataItem Add(this IChartDrawData.IChartDrawDataItem item, IChartCandleElement element, ICandleMessage candle)
Parameters
itemIChartDrawData.IChartDrawDataItemIChartDrawData.IChartDrawDataItem instance.
elementIChartCandleElementThe chart element representing a candle.
candleICandleMessageThe candle data.
Returns
Add(IChartDrawDataItem, IChartCandleElement, ICandleMessage, decimal, decimal, decimal, decimal, CandlePriceLevel[], CandleStates)
Put the candle data.
public static IChartDrawData.IChartDrawDataItem Add(this IChartDrawData.IChartDrawDataItem item, IChartCandleElement element, ICandleMessage candle, decimal openPrice, decimal highPrice, decimal lowPrice, decimal closePrice, CandlePriceLevel[] priceLevels, CandleStates state)
Parameters
itemIChartDrawData.IChartDrawDataItemIChartDrawData.IChartDrawDataItem instance.
elementIChartCandleElementThe chart element representing a candle.
candleICandleMessageCandle.
openPricedecimalOpening price.
highPricedecimalHighest price.
lowPricedecimalLowest price.
closePricedecimalClosing price.
priceLevelsCandlePriceLevel[]Price levels.
stateCandleStatesCandle state.
Returns
Add(IChartDrawDataItem, IChartElement, object)
Put the chart data.
public static IChartDrawData.IChartDrawDataItem Add(this IChartDrawData.IChartDrawDataItem item, IChartElement element, object value)
Parameters
itemIChartDrawData.IChartDrawDataItemIChartDrawData.IChartDrawDataItem instance.
elementIChartElementThe chart element.
valueobjectThe chart value.
Returns
Add(IChartDrawDataItem, IChartOrderElement, Order, string)
Put the order data.
public static IChartDrawData.IChartDrawDataItem Add(this IChartDrawData.IChartDrawDataItem item, IChartOrderElement element, Order order, string errorMessage = null)
Parameters
itemIChartDrawData.IChartDrawDataItemIChartDrawData.IChartDrawDataItem instance.
elementIChartOrderElementThe chart element representing orders.
orderOrderThe order value.
errorMessagestringError registering/cancelling order.
Returns
Add(IChartDrawDataItem, IChartTradeElement, MyTrade)
Put the order data.
public static IChartDrawData.IChartDrawDataItem Add(this IChartDrawData.IChartDrawDataItem item, IChartTradeElement element, MyTrade trade)
Parameters
itemIChartDrawData.IChartDrawDataItemIChartDrawData.IChartDrawDataItem instance.
elementIChartTradeElementThe chart element representing trades.
tradeMyTradeThe trade value.
Returns
ClearAreas(IChart)
To remove all areas from the chart.
public static void ClearAreas(this IChart chart)
Parameters
FillIndicators(IChart)
Fill IndicatorTypes using IIndicatorProvider.
public static void FillIndicators(this IChart chart)
Parameters
chartIChartChart.
GetAutoRange(IChartArea)
To use automatic range for the X-axis.
public static bool GetAutoRange(this IChartArea area)
Parameters
areaIChartArea
Returns
- bool
To use automatic range for the X-axis.
GetElements(IChart)
Get all elements.
public static IEnumerable<IChartElement> GetElements(this IChart chart)
Parameters
Returns
- IEnumerable<IChartElement>
Chart elements.
GetElements<T>(IChart)
Get all elements.
public static IEnumerable<T> GetElements<T>(this IChart chart) where T : IChartElement
Parameters
Returns
- IEnumerable<T>
Chart elements.
Type Parameters
TIChartElement type.
IsDefault(IChartAxis)
Whether this axis can be removed from chart area.
public static bool IsDefault(this IChartAxis axis)
Parameters
axisIChartAxis
Returns
SetAutoRange(IChartArea, bool)
To use automatic range for the X-axis.
public static void SetAutoRange(this IChartArea area, bool value)
Parameters
areaIChartAreavalueboolTo use automatic range for the X-axis.
TryGetChart(IChartElement)
The chart on which the element is drawn.
public static IChart TryGetChart(this IChartElement elem)
Parameters
Returns
- IChart
The chart on which the element is drawn.
TryGetXAxis(IChartElement)
X axis this element currently attached to.
public static IChartAxis TryGetXAxis(this IChartElement elem)
Parameters
Returns
- IChartAxis
X axis this element currently attached to.
TryGetYAxis(IChartElement)
Y axis this element currently attached to.
public static IChartAxis TryGetYAxis(this IChartElement elem)
Parameters
Returns
- IChartAxis
Y axis this element currently attached to.