Skip to content

ChartFibonacciFan

Summary

Represents the Fibonacci Fan chart object.

Signature

1
public abstract interface ChartFibonacciFan

Namespace

cAlgo.API

Properties

Name Description
Time1 { get; set; } Gets or sets the value 1 on the Time line.
Time2 { get; set; } Gets or sets the value 2 on the Time line.
Y1 { get; set; } Gets or sets the value 1 on the Y-axis.
Y2 { get; set; } Gets or sets the value 2 on the Y-axis.

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.DrawFibonacciFan method to draw a Fibonacci Fan
     [Indicator(IsOverlay = true, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
     public class FibonacciFanSample : Indicator
     {
         protected override void Initialize()
         {
             Chart.DrawFibonacciFan("Fan", Chart.FirstVisibleBarIndex, Bars.ClosePrices[Chart.FirstVisibleBarIndex], Chart.LastVisibleBarIndex, Bars.ClosePrices[Chart.LastVisibleBarIndex], Color.Red);
         }
         public override void Calculate(int index)
         {
         }
     }
 }

See Also


Last update: December 8, 2022

Comments