ChartFrame
interface cAlgo.API
DesktopCLICloud
Represents a chart frame.
Environment behaviour
CLI — not supported. Available to plugins only, and plugins cannot run in the CLI.
Cloud — not supported. Available to plugins only, and plugins cannot run in the cloud.
Definition
public interface ChartFrame
Namespace: cAlgo.API · Group: Chart · Implements: Frame
Examples
var chartFrame = ChartManager.AddChartFrame("EURUSD", TimeFrame.Hour);
chartFrame.LinkedChartGroup = LinkedChartGroup.A;
Print("Chart {0} {1} has {2} bars", chartFrame.Symbol.Name, chartFrame.TimeFrame, chartFrame.Chart.Bars.Count);
chartFrame = api.ChartManager.AddChartFrame("EURUSD", TimeFrame.Hour)
chartFrame.LinkedChartGroup = LinkedChartGroup.A
api.Print(f"Chart {chartFrame.Symbol.Name} {chartFrame.TimeFrame} has {chartFrame.Chart.Bars.Count} bars")
Methods
| Name | Description |
|---|---|
TryChangeTimeFrameDesktopCLICloudbool | Changes the time frame on the chart. |
TryChangeTimeFrameAndSymbolDesktopCLICloudbool | Changes the time frame and the symbol on the chart. |
Properties
| Name | Description |
|---|---|
ChartDesktopCLICloudChart | Returns frame chart. |
LinkedChartGroupDesktopCLICloudLinkedChartGroup | Get / set linked group of frame. |
SymbolDesktopCLICloudSymbol | Get / set frame chart symbol. |
TimeFrameDesktopCLICloudTimeFrame | Get / set frame chart timeframe. |
Events
| Name | Description |
|---|---|
LinkedChartGroupChangedDesktopCLICloudAction<ChartFrameLinkedChartGroupChangedEventArgs> | Occurs when frame LinkedChartGroup is changed. |
Inherited members
From Frame: Attach, Detach, Activate, Id, ChartContainer, Width, Height, IsAttached, Index, SizeChanged, Attached, Detached, ContainerChanged