IChartExtensions

StockSharp.Charting

IChart extensions.

Properties

IndicatorPainterProvider
public static IChartIndicatorPainterProvider IndicatorPainterProvider { get; }
value = IChartExtensions.IndicatorPainterProvider

IChartIndicatorPainterProvider

IndicatorProvider
public static IIndicatorProvider IndicatorProvider { get; }
value = IChartExtensions.IndicatorProvider

IIndicatorProvider

TryIndicatorPainterProvider
public static IChartIndicatorPainterProvider TryIndicatorPainterProvider { get; }
value = IChartExtensions.TryIndicatorPainterProvider

IIndicatorProvider

TryIndicatorProvider
public static IIndicatorProvider TryIndicatorProvider { get; }
value = IChartExtensions.TryIndicatorProvider

IIndicatorProvider

Methods

Add
public static IChartDrawDataItem Add(IChartDrawDataItem item, IChartCandleElement element, ICandleMessage candle, decimal openPrice, decimal highPrice, decimal lowPrice, decimal closePrice, CandlePriceLevel[] priceLevels, CandleStates state)
result = IChartExtensions.Add(item, element, candle, openPrice, highPrice, lowPrice, closePrice, priceLevels, state)

Put the candle data.

item
IChartDrawDataItem instance.
element
The chart element representing a candle.
candle
Candle.
openPrice
Opening price.
highPrice
Highest price.
lowPrice
Lowest price.
closePrice
Closing price.
priceLevels
Price levels.
state
Candle state.

Returns: IChartDrawDataItem instance.

Add
public static IChartDrawDataItem Add(IChartDrawDataItem item, IChartTradeElement element, MyTrade trade)
result = IChartExtensions.Add(item, element, trade)

Put the order data.

item
IChartDrawDataItem instance.
element
The chart element representing trades.
trade
The trade value.

Returns: IChartDrawDataItem instance.

Add
public static IChartDrawDataItem Add(IChartDrawDataItem item, IChartOrderElement element, Order order, string errorMessage)
result = IChartExtensions.Add(item, element, order, errorMessage)

Put the order data.

item
IChartDrawDataItem instance.
element
The chart element representing orders.
order
The order value.
errorMessage
Error registering/cancelling order.

Returns: IChartDrawDataItem instance.

Add
public static IChartDrawDataItem Add(IChartDrawDataItem item, IChartCandleElement element, ICandleMessage candle)
result = IChartExtensions.Add(item, element, candle)

Put the candle data.

item
IChartDrawDataItem instance.
element
The chart element representing a candle.
candle
The candle data.

Returns: IChartDrawDataItem instance.

Add
public static IChartDrawDataItem Add(IChartDrawDataItem item, IChartElement element, object value)
result = IChartExtensions.Add(item, element, value)

Put the chart data.

item
IChartDrawDataItem instance.
element
The chart element.
value
The chart value.

Returns: IChartDrawDataItem instance.

ClearAreas
public static void ClearAreas(IChart chart)
IChartExtensions.ClearAreas(chart)

To remove all areas from the chart.

chart
IChart
FillIndicators
public static void FillIndicators(IChart chart)
IChartExtensions.FillIndicators(chart)

Fill IndicatorTypes using IIndicatorProvider.

chart
Chart.
GetAutoRange
public static bool GetAutoRange(IChartArea area)
result = IChartExtensions.GetAutoRange(area)

To use automatic range for the X-axis.

area
IChartArea

Returns: To use automatic range for the X-axis.

GetElements
public static IEnumerable<IChartElement> GetElements(IChart chart)
result = IChartExtensions.GetElements(chart)

Get all elements.

chart
IChart

Returns: Chart elements.

GetElements``1
public static IEnumerable<T> GetElements<T>(IChart chart)
result = IChartExtensions.GetElements(chart)

Get all elements.

chart
IChart

Returns: Chart elements.

IsDefault
public static bool IsDefault(IChartAxis axis)
result = IChartExtensions.IsDefault(axis)

Whether this axis can be removed from chart area.

SetAutoRange
public static void SetAutoRange(IChartArea area, bool value)
IChartExtensions.SetAutoRange(area, value)

To use automatic range for the X-axis.

area
IChartArea
value
To use automatic range for the X-axis.
TryGetChart
public static IChart TryGetChart(IChartElement elem)
result = IChartExtensions.TryGetChart(elem)

The chart on which the element is drawn.

elem
IChartElement

Returns: The chart on which the element is drawn.

TryGetXAxis
public static IChartAxis TryGetXAxis(IChartElement elem)
result = IChartExtensions.TryGetXAxis(elem)

X axis this element currently attached to.

elem
IChartElement

Returns: X axis this element currently attached to.

TryGetYAxis
public static IChartAxis TryGetYAxis(IChartElement elem)
result = IChartExtensions.TryGetYAxis(elem)

Y axis this element currently attached to.

elem
IChartElement

Returns: Y axis this element currently attached to.

Fields

DefaultXAxisId
public const string DefaultXAxisId
value = IChartExtensions.DefaultXAxisId

The primary title for the X-axis.

DefaultYAxisId
public const string DefaultYAxisId
value = IChartExtensions.DefaultYAxisId

The primary title for the Y-axis.