Skip to content

ChartManager

Summary

Represents the list of all the chart frames.

Signature

1
public abstract interface ChartManager

Namespace

cAlgo.API

Methods

GetChartFrame

Summary

Gets a chart frame by it's Id.

Signature

1
public abstract ChartFrame GetChartFrame(string frameId)

Parameters

Name Type Description
frameId string Frame Id

Return Value

ChartFrame

GetCustomFrame

Summary

Gets a custom frame by it's Id.

Signature

1
public abstract CustomFrame GetCustomFrame(string frameId)

Parameters

Name Type Description
frameId string Frame Id

Return Value

CustomFrame

RemoveFrame

Summary

Removes a frame by it's Id.

Signature

1
public abstract bool RemoveFrame(string frameId)

Parameters

Name Type Description
frameId string Frame Id

Return Value

bool

AddChartFrame (2)

AddChartFrame (1 of 2)

Summary

Adds a new chart frame to main chart container.

Signature

1
public abstract ChartFrame AddChartFrame(string symbolName, TimeFrame timeFrame)

Parameters

Name Type Description
symbolName string Symbol name
timeFrame TimeFrame Timeframe

Return Value

ChartFrame

AddChartFrame (2 of 2)

Summary

Adds a new chart frame to target chart container.

Signature

1
public abstract ChartFrame AddChartFrame(string symbolName, TimeFrame timeFrame, ChartContainer targetChartContainer)

Parameters

Name Type Description
symbolName string Symbol name
timeFrame TimeFrame Timeframe
targetChartContainer ChartContainer Target chart container

Return Value

ChartFrame

AddCustomFrame (2)

AddCustomFrame (1 of 2)

Summary

Adds a new custom frame to main chart container.

Signature

1
public abstract CustomFrame AddCustomFrame(string title)

Parameters

Name Type Description
title string Custom frame title.

Return Value

CustomFrame

AddCustomFrame (2 of 2)

Summary

Adds a new custom frame to target chart container.

Signature

1
public abstract CustomFrame AddCustomFrame(string title, ChartContainer targetChartContainer)

Parameters

Name Type Description
title string Custom frame title.
targetChartContainer ChartContainer Target chart container

Return Value

CustomFrame

Properties

Count

Summary

Returns number of all frames.

Signature

1
public abstract int Count {get;}

Return Value

int

ChartContainers

Summary

Returns chart containers.

Signature

1
public abstract ChartContainers ChartContainers {get;}

Return Value

ChartContainers

ActiveFrame

Summary

Returns current active frame if any otherwise null.

Signature

1
public abstract Frame ActiveFrame {get;}

Return Value

Frame

Events

FramesAdded

Summary

Occurs when new frames are added.

Signature

1
public abstract event Action<FramesAddedEventArgs> FramesAdded;

FramesRemoved

Summary

Occurs when frames are removed.

Signature

1
public abstract event Action<FramesRemovedEventArgs> FramesRemoved;

ActiveFrameChanged

Summary

Occurs when active frame is changed.

Signature

1
public abstract event Action<ActiveFrameChangedEventArgs> ActiveFrameChanged;