Skip to content

ChartGannBase

interface cAlgo.API Since 5.6

DesktopCLICloud

Represents the Gann tools options.

Environment behaviour

CLI — works differently. Created and kept with all its properties, but never drawn: the CLI displays no chart.

Cloud — works differently. Created and kept with all its properties, but never drawn: the cloud displays no chart.

Definition

public interface ChartGannBase

Namespace: cAlgo.API · Group: Gann · Implements: ChartObject

Examples

ChartGannBase gann = Chart.DrawGannFan("gannFan", Bars.OpenTimes.Last(30), Bars.LowPrices.Last(30), Bars.OpenTimes.LastValue, Bars.HighPrices.LastValue, Color.Blue);
gann.DisplayPrices = true;
gann.Thickness = 2;
Print("Gann levels: {0} | From {1} to {2}", gann.GannLevels.Count, gann.Time1, gann.Time2);
gann = api.Chart.DrawGannFan("gannFan", api.Bars.OpenTimes.Last(30), api.Bars.LowPrices.Last(30), api.Bars.OpenTimes.LastValue, api.Bars.HighPrices.LastValue, Color.Blue)
gann.DisplayPrices = True
gann.Thickness = 2
api.Print(f"Gann levels: {gann.GannLevels.Count} | From {gann.Time1} to {gann.Time2}")

Properties

Name Description
ColorDesktopCLICloudColor Gets or sets the lines color.
DisplayPricesDesktopCLICloudbool Defines if the Gann levels display the prices
GannLevelsDesktopCLICloudIReadonlyList<GannLevel> Gets the Gann levels.
LineStyleDesktopCLICloudLineStyle Gets or sets the lines style.
ThicknessDesktopCLICloudint Gets or sets the lines thickness.
Time1DesktopCLICloudDateTime Gets or sets the first point time value on the Time line.
Time2DesktopCLICloudDateTime Gets or sets the second point time value on the Time line.
Y1DesktopCLIClouddouble Gets or sets the first point value on the Y-axis.
Y2DesktopCLIClouddouble Gets or sets the second point value on the Y-axis.

Inherited members

From ChartObject: Name, Comment, ObjectType, IsInteractive, IsLocked, IsHidden, ZIndex, IsAlive

See also