ChartFibonacciExpansion
interface cAlgo.API
DesktopCLICloud
Represents the Fibonacci Expansion chart object.
Environment behaviour
CLI — works differently. Created and kept with all its properties, but never drawn: the CLI displays no chart.
Cloud — works differently. Created and kept with all its properties, but never drawn: the cloud displays no chart.
Definition
public interface ChartFibonacciExpansion
Namespace: cAlgo.API · Group: Fibonacci · Implements: ChartFibonacciBase, ChartObject
Examples
using cAlgo.API;
namespace cAlgo
{
// A sample indicator for showing how to use the Chart.DrawFibonacciExpansion method
public partial 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)
{
}
}
}
import clr
clr.AddReference("cAlgo.API")
from cAlgo.API import *
class Test():
def initialize(self):
period = api.Chart.LastVisibleBarIndex - api.Chart.FirstVisibleBarIndex
fibonacciExpansion = api.Chart.DrawFibonacciExpansion("fibonacciExpansion", api.Chart.FirstVisibleBarIndex, api.Bars.LowPrices[api.Chart.FirstVisibleBarIndex], api.Chart.FirstVisibleBarIndex, Functions.Minimum(api.Bars.LowPrices, period), api.Chart.LastVisibleBarIndex, Functions.Maximum(api.Bars.HighPrices, period), Color.Red)
fibonacciExpansion.IsInteractive = True
{
"AccessRights": "None",
"TimeZone": "UTC",
"IsOverlay": true
}
Properties
| Name | Description |
|---|---|
Time1DesktopCLICloudDateTime | Gets or sets the value 1 on the Time line. |
Time2DesktopCLICloudDateTime | Gets or sets the value 2 on the Time line. |
Time3DesktopCLICloudDateTime | Gets or sets the value 3 on the Time line. |
Y1DesktopCLIClouddouble | Gets or sets the value 1 on the Y-axis. |
Y2DesktopCLIClouddouble | Gets or sets the value 2 on the Y-axis. |
Y3DesktopCLIClouddouble | Gets or sets the value 3 on the Y-axis. |
Inherited members
From ChartFibonacciBase: FibonacciLevels, DisplayPrices, Thickness, Color, LineStyle
From ChartObject: Name, Comment, ObjectType, IsInteractive, IsLocked, IsHidden, ZIndex, IsAlive