Skip to content

ChartGannSquare

Summary

Represents the Gann Square chart object.

Signature

1
public abstract interface ChartGannSquare

Namespace

cAlgo.API

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
 using cAlgo.API;
 namespace cAlgo
 {
     // This sample shows how to use Chart.DrawGannSquare method to draw a Gann Square
     [Indicator(IsOverlay = true, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
     public class GannSquareSample : Indicator
     {
         protected override void Initialize()
         {
             Chart.DrawGannSquare("GannSquare", Chart.FirstVisibleBarIndex, Bars.ClosePrices[Chart.FirstVisibleBarIndex], Chart.LastVisibleBarIndex, Bars.ClosePrices[Chart.LastVisibleBarIndex], Color.Blue);
         }
         public override void Calculate(int index)
         {
         }
     }
 }

See Also