Skip to content

ChartFibonacciRetracement

Summary

Represents the Fibonacci Retracement chart object.

Signature

1
public abstract interface ChartFibonacciRetracement

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
17
18
19
 using cAlgo.API;
 namespace cAlgo
 {
     // This indicator shows how to use the Chart.DrawFibonacciRetracement method to draw a Fibonacci Retracement
     [Indicator(IsOverlay = true, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
     public class FibonacciRetracementSample : Indicator
     {
         protected override void Initialize()
         {
             var period = Chart.LastVisibleBarIndex - Chart.FirstVisibleBarIndex;
             var max = Bars.HighPrices.Maximum(period);
             var min = Bars.LowPrices.Minimum(period);
             Chart.DrawFibonacciRetracement("FibonacciRetracement", Chart.FirstVisibleBarIndex, max, Chart.LastVisibleBarIndex, min, Color.Red);
         }
         public override void Calculate(int index)
         {
         }
     }
 }

See Also


Last update: June 26, 2022

Comments