Skip to content

ChartGannSquareFixed

interface cAlgo.API Since 5.7

DesktopCLICloud

Represents the Gann Square Fixed chart object with screen-space rendering.

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 ChartGannSquareFixed

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

Examples

using cAlgo.API;

namespace cAlgo
{
    // This sample shows how to use Chart.DrawGannSquareFixed method to draw a Gann Square Fixed
    public partial class GannSquareFixedSample : Indicator
    {
        protected override void Initialize()
        {
            Chart.DrawGannSquareFixed("GannSquareFixed", Chart.FirstVisibleBarIndex, Bars.ClosePrices[Chart.FirstVisibleBarIndex], Chart.LastVisibleBarIndex, Bars.ClosePrices[Chart.LastVisibleBarIndex], Color.Blue);
        }

        public override void Calculate(int index)
        {
        }
    }
}
gannSquareFixed = api.Chart.DrawGannSquareFixed("GannSquareFixed", api.Chart.FirstVisibleBarIndex, api.Bars.ClosePrices[api.Chart.FirstVisibleBarIndex], api.Chart.LastVisibleBarIndex, api.Bars.ClosePrices[api.Chart.LastVisibleBarIndex], Color.Blue)
gannSquareFixed.IsInteractive = True
{
  "AccessRights": "None",
  "TimeZone": "UTC",
  "IsOverlay": true
}

Methods

Name Description
CalculateY 2 overloadsDesktopCLIClouddouble Calculates Y-axis value corresponding the specified bar index.

Inherited members

From ChartGannBase: GannLevels, DisplayPrices, Thickness, Color, LineStyle, Time1, Time2, Y1, Y2

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

See also