ChartFibonacciFan


Summary

Represents the Fibonacci Fan chart object.

Syntax

public interface ChartFibonacciFan : ChartFibonacciBase, ChartObject

Members

NameTypeSummary
Time1 PropertyGets or sets the value 1 on the Time line.
Time2 PropertyGets or sets the value 2 on the Time line.
Y1 PropertyGets or sets the value 1 on the Y-axis.
Y2 PropertyGets or sets the value 2 on the Y-axis.

Example 1

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)
        {
        }
    }
}
Reference