ChartFibonacciFan Summary Represents the Fibonacci Fan chart object.
Signature
public abstract interface ChartFibonacciFan
Namespace cAlgo.API
Examples Example 1 (C#) Example 2 (PYTHON)
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 )
{
}
}
}
import clr
clr . AddReference ( "cAlgo.API" )
from cAlgo.API import *
class Test ():
def initialize ( self ):
fibonacciFan = api . Chart . DrawFibonacciFan ( "Fan" , api . Chart . FirstVisibleBarIndex , api . Bars . ClosePrices [ api . Chart . FirstVisibleBarIndex ], api . Chart . LastVisibleBarIndex , api . Bars . ClosePrices [ api . Chart . LastVisibleBarIndex ], Color . Red )
fibonacciFan . IsInteractive = True
See Also Methods CalculateY (2) CalculateY (1 of 2)
Summary
Calculates Y-axis value corresponding the specified bar index.
Signature
public abstract double CalculateY ( int barIndex , FibonacciLevel level )
Parameters
Name Type Description barIndex int Index of the bar. level FibonacciLevel 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
public abstract double CalculateY ( DateTime time , FibonacciLevel level )
Parameters
Name Type Description time DateTime The time. level FibonacciLevel Level to get Y-axis value for.
Return Value
double
Properties Time1 Summary
Gets or sets the value 1 on the Time line.
Signature
public abstract DateTime Time1 { get ; set ;}
Return Value
DateTime
Time2 Summary
Gets or sets the value 2 on the Time line.
Signature
public abstract DateTime Time2 { get ; set ;}
Return Value
DateTime
Y1 Summary
Gets or sets the value 1 on the Y-axis.
Signature
public abstract double Y1 { get ; set ;}
Return Value
double
Y2 Summary
Gets or sets the value 2 on the Y-axis.
Signature
public abstract double Y2 { get ; set ;}
Return Value
double