Skip to content

ChartFibonacciExpansion

Summary

Represents the Fibonacci Expansion chart object.

Signature

1
public abstract interface ChartFibonacciExpansion

Namespace

cAlgo.API

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
 using cAlgo.API;
 namespace cAlgo
 {
     // A sample indicator for showing how to use the Chart.DrawFibonacciExpansion method
     [Indicator(IsOverlay = true, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
     public class FibonacciExpansionSample : Indicator
     {
         protected override void Initialize()
         {
             var period = Chart.LastVisibleBarIndex - Chart.FirstVisibleBarIndex;
             var fibonacciExpansion = Chart.DrawFibonacciExpansion("fibonacciExpansion", Chart.FirstVisibleBarIndex, Bars.LowPrices[Chart.FirstVisibleBarIndex], Chart.FirstVisibleBarIndex, Bars.LowPrices.Minimum(period), Chart.LastVisibleBarIndex, Bars.HighPrices.Maximum(period), Color.Red);
             fibonacciExpansion.IsInteractive = true;
         }
         public override void Calculate(int index)
         {
         }
     }
 }

See Also

Properties

Time1

Summary

Gets or sets the value 1 on the Time line.

Signature

1
public abstract DateTime Time1 {get; set;}

Return Value

DateTime

Time2

Summary

Gets or sets the value 2 on the Time line.

Signature

1
public abstract DateTime Time2 {get; set;}

Return Value

DateTime

Time3

Summary

Gets or sets the value 3 on the Time line.

Signature

1
public abstract DateTime Time3 {get; set;}

Return Value

DateTime

Y1

Summary

Gets or sets the value 1 on the Y-axis.

Signature

1
public abstract double Y1 {get; set;}

Return Value

double

Y2

Summary

Gets or sets the value 2 on the Y-axis.

Signature

1
public abstract double Y2 {get; set;}

Return Value

double

Y3

Summary

Gets or sets the value 3 on the Y-axis.

Signature

1
public abstract double Y3 {get; set;}

Return Value

double