Skip to content

ChartGannSquareFixed

Summary

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

Signature

1
public abstract interface ChartGannSquareFixed

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.DrawGannSquareFixed method to draw a Gann Square Fixed
     [Indicator(IsOverlay = true, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
     public 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)
         {
         }
     }
 }

See Also

Methods

CalculateY (2)

CalculateY (1 of 2)

Summary

Calculates Y-axis value corresponding the specified bar index.

Signature

1
public abstract double CalculateY(int barIndex, GannLevel level)

Parameters

Name Type Description
barIndex int Index of the bar.
level GannLevel Level to get Y-axis value for.

Return Value

double

CalculateY (2 of 2)

Summary

Calculates Y-axis value corresponding the specified time value.

Signature

1
public abstract double CalculateY(DateTime time, GannLevel level)

Parameters

Name Type Description
time DateTime The time.
level GannLevel Level to get Y-axis value for.

Return Value

double