Skip to content

Frame.Index

property · Frame · cAlgo.API

DesktopCLICloud

Get / set frame index in container.

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

int Index {get; set;}
frame.Index: int

Returns int

Examples

var chartFrame = ChartManager.AddChartFrame("EURUSD", TimeFrame.Hour);
chartFrame.Index = 0;
Print("Frame index: {0}", chartFrame.Index);
chartFrame = api.ChartManager.AddChartFrame("EURUSD", TimeFrame.Hour)
chartFrame.Index = 0
api.Print(f"Frame index: {chartFrame.Index}")