Table of Contents

Class ChartingInterfacesExtensions

Namespace
StockSharp.Charting
Assembly
StockSharp.Charting.Interfaces.dll

Extension class for IChart.

public static class ChartingInterfacesExtensions
Inheritance
ChartingInterfacesExtensions
Inherited Members

Methods

AddArea(IChart)

Create IChartArea.

public static IChartArea AddArea(this IChart chart)

Parameters

chart IChart

IChart

Returns

IChartArea

IChartArea

AddCandles(IChartArea)

Create IChartCandleElement element.

public static IChartCandleElement AddCandles(this IChartArea area)

Parameters

area IChartArea

IChartArea

Returns

IChartCandleElement

IChartCandleElement

AddIndicator(IChartArea, IIndicator)

Create IChartIndicatorElement element.

public static IChartIndicatorElement AddIndicator(this IChartArea area, IIndicator indicator)

Parameters

area IChartArea

IChartArea

indicator IIndicator

IIndicator

Returns

IChartIndicatorElement

IChartIndicatorElement

AddOrders(IChartArea)

Create IChartOrderElement element.

public static IChartOrderElement AddOrders(this IChartArea area)

Parameters

area IChartArea

IChartArea

Returns

IChartOrderElement

IChartOrderElement

AddTrades(IChartArea)

Create IChartTradeElement element.

public static IChartTradeElement AddTrades(this IChartArea area)

Parameters

area IChartArea

IChartArea

Returns

IChartTradeElement

IChartTradeElement

Draw(IChart, IChartCandleElement, ICandleMessage)

To draw the candle.

public static void Draw(this IChart chart, IChartCandleElement element, ICandleMessage candle)

Parameters

chart IChart

Chart.

element IChartCandleElement

The chart element representing a candle.

candle ICandleMessage

Candle.

Draw(IChart, IEnumerable<RefPair<DateTimeOffset, IDictionary<IChartElement, object>>>)

To process the new data.

[Obsolete("Use the Draw method instead.")]
public static void Draw(this IChart chart, IEnumerable<RefPair<DateTimeOffset, IDictionary<IChartElement, object>>> values)

Parameters

chart IChart

Chart.

values IEnumerable<RefPair<DateTimeOffset, IDictionary<IChartElement, object>>>

New data.

Draw(IChart, DateTimeOffset, IChartElement, object)

To draw new data.

[Obsolete("Use the Draw method instead.")]
public static void Draw(this IChart chart, DateTimeOffset time, IChartElement element, object value)

Parameters

chart IChart

Chart.

time DateTimeOffset

The time stamp of the new data generation.

element IChartElement

The chart element.

value object

Value.

Draw(IChart, DateTimeOffset, IDictionary<IChartElement, object>)

To process the new data.

[Obsolete("Use the Draw method instead.")]
public static void Draw(this IChart chart, DateTimeOffset time, IDictionary<IChartElement, object> values)

Parameters

chart IChart

Chart.

time DateTimeOffset

The time stamp of the new data generation.

values IDictionary<IChartElement, object>

New data.

GetChart(Strategy)

To get the IChart associated with the passed strategy.

public static IChart GetChart(this Strategy strategy)

Parameters

strategy Strategy

Strategy.

Returns

IChart

Chart.

GetOptionPositionChart(Strategy)

To get the IOptionPositionChart associated with the passed strategy.

public static IOptionPositionChart GetOptionPositionChart(this Strategy strategy)

Parameters

strategy Strategy

Strategy.

Returns

IOptionPositionChart

Chart.

IsVolumeProfileChart(ChartCandleDrawStyles)

Check the specified style is volume profile based.

public static bool IsVolumeProfileChart(this ChartCandleDrawStyles style)

Parameters

style ChartCandleDrawStyles

Style.

Returns

bool

Check result.

SetChart(Strategy, IChart)

To set a IChart for the strategy.

public static void SetChart(this Strategy strategy, IChart chart)

Parameters

strategy Strategy

Strategy.

chart IChart

Chart.

SetOptionPositionChart(Strategy, IOptionPositionChart)

To set a IChart for the strategy.

public static void SetOptionPositionChart(this Strategy strategy, IOptionPositionChart chart)

Parameters

strategy Strategy

Strategy.

chart IOptionPositionChart

Chart.