ChartArea.DrawFibonacciTimezones
method · ChartArea · cAlgo.API
Draws a Fibonacci timezones.
Environment behaviour
CLI — works differently. The object is created and returned, but never drawn: the CLI displays no chart.
Cloud — works differently. The object is created and returned, but never drawn: the cloud displays no chart.
Overloads
DrawFibonacciTimezones(string name, DateTime time1, double y1, DateTime time2, double y2, Color color)
Draws a Fibonacci timezones.
ChartFibonacciTimezones DrawFibonacciTimezones(string name, DateTime time1, double y1, DateTime time2, double y2, Color color)
chartArea.DrawFibonacciTimezones(name: str, time1: DateTime, y1: float, time2: DateTime, y2: float, color: Color) -> ChartFibonacciTimezones
Parameters
| Name | C# type | Python type | Description |
|---|---|---|---|
name | string | str | The chart object name - a unique name that can be only used once for a chart area. If duplicated, the chart object will be replaced with a new one of the same name. |
time1 | DateTime | DateTime | The time value of the Fibonacci timezones start point location on the X-axis. |
y1 | double | float | The Y-axis value of the Fibonacci timezones start point location. |
time2 | DateTime | DateTime | The time value of the Fibonacci timezones end point location on the X-axis. |
y2 | double | float | The Y-axis value of the Fibonacci timezones end point location. |
color | Color | Color | The Fibonacci timezones lines color. |
Returns ChartFibonacciTimezones — ChartFibonacciTimezones.
Examples
var timezones = Chart.DrawFibonacciTimezones("timezones", Bars.OpenTimes.Last(30), Bars.LowPrices.Last(30), Bars.OpenTimes.Last(25), Bars.HighPrices.Last(25), Color.Red);
Print("Fibonacci timezones levels: {0}", timezones.FibonacciLevels.Count);
timezones = api.Chart.DrawFibonacciTimezones("timezones", api.Bars.OpenTimes.Last(30), api.Bars.LowPrices.Last(30), api.Bars.OpenTimes.Last(25), api.Bars.HighPrices.Last(25), Color.Red)
api.Print(f"Fibonacci timezones levels: {timezones.FibonacciLevels.Count}")
DrawFibonacciTimezones(string name, DateTime time1, double y1, DateTime time2, double y2, Color color, int thickness)
Draws a Fibonacci timezones.
ChartFibonacciTimezones DrawFibonacciTimezones(string name, DateTime time1, double y1, DateTime time2, double y2, Color color, int thickness)
chartArea.DrawFibonacciTimezones(name: str, time1: DateTime, y1: float, time2: DateTime, y2: float, color: Color, thickness: int) -> ChartFibonacciTimezones
Parameters
| Name | C# type | Python type | Description |
|---|---|---|---|
name | string | str | The chart object name - a unique name that can be only used once for a chart area. If duplicated, the chart object will be replaced with a new one of the same name. |
time1 | DateTime | DateTime | The time value of the Fibonacci timezones start point location on the X-axis. |
y1 | double | float | The Y-axis value of the Fibonacci timezones start point location. |
time2 | DateTime | DateTime | The time value of the Fibonacci timezones end point location on the X-axis. |
y2 | double | float | The Y-axis value of the Fibonacci timezones end point location. |
color | Color | Color | The Fibonacci timezones lines color. |
thickness | int | int | The Fibonacci timezones lines thickness. |
Returns ChartFibonacciTimezones — ChartFibonacciTimezones.
Examples
var timezones = Chart.DrawFibonacciTimezones("timezones", Bars.OpenTimes.Last(30), Bars.LowPrices.Last(30), Bars.OpenTimes.Last(25), Bars.HighPrices.Last(25), Color.Red, 2);
Print("Fibonacci timezones thickness: {0}", timezones.Thickness);
timezones = api.Chart.DrawFibonacciTimezones("timezones", api.Bars.OpenTimes.Last(30), api.Bars.LowPrices.Last(30), api.Bars.OpenTimes.Last(25), api.Bars.HighPrices.Last(25), Color.Red, 2)
api.Print(f"Fibonacci timezones thickness: {timezones.Thickness}")
DrawFibonacciTimezones(string name, DateTime time1, double y1, DateTime time2, double y2, Color color, int thickness, LineStyle lineStyle)
Draws a Fibonacci timezones.
ChartFibonacciTimezones DrawFibonacciTimezones(string name, DateTime time1, double y1, DateTime time2, double y2, Color color, int thickness, LineStyle lineStyle)
chartArea.DrawFibonacciTimezones(name: str, time1: DateTime, y1: float, time2: DateTime, y2: float, color: Color, thickness: int, lineStyle: LineStyle) -> ChartFibonacciTimezones
Parameters
| Name | C# type | Python type | Description |
|---|---|---|---|
name | string | str | The chart object name - a unique name that can be only used once for a chart area. If duplicated, the chart object will be replaced with a new one of the same name. |
time1 | DateTime | DateTime | The time value of the Fibonacci timezones start point location on the X-axis. |
y1 | double | float | The Y-axis value of the Fibonacci timezones start point location. |
time2 | DateTime | DateTime | The time value of the Fibonacci timezones end point location on the X-axis. |
y2 | double | float | The Y-axis value of the Fibonacci timezones end point location. |
color | Color | Color | The Fibonacci timezones lines color. |
thickness | int | int | The Fibonacci timezones lines thickness. |
lineStyle | LineStyle | LineStyle | The Fibonacci timezones lines style. |
Returns ChartFibonacciTimezones — ChartFibonacciTimezones.
Examples
var timezones = Chart.DrawFibonacciTimezones("timezones", Bars.OpenTimes.Last(30), Bars.LowPrices.Last(30), Bars.OpenTimes.Last(25), Bars.HighPrices.Last(25), Color.Red, 2, LineStyle.Dots);
Print("Fibonacci timezones style: {0}", timezones.LineStyle);
timezones = api.Chart.DrawFibonacciTimezones("timezones", api.Bars.OpenTimes.Last(30), api.Bars.LowPrices.Last(30), api.Bars.OpenTimes.Last(25), api.Bars.HighPrices.Last(25), Color.Red, 2, LineStyle.Dots)
api.Print(f"Fibonacci timezones style: {timezones.LineStyle}")
DrawFibonacciTimezones(string name, int barIndex1, double y1, int barIndex2, double y2, Color color)
Draws a Fibonacci timezones.
ChartFibonacciTimezones DrawFibonacciTimezones(string name, int barIndex1, double y1, int barIndex2, double y2, Color color)
chartArea.DrawFibonacciTimezones(name: str, barIndex1: int, y1: float, barIndex2: int, y2: float, color: Color) -> ChartFibonacciTimezones
Parameters
| Name | C# type | Python type | Description |
|---|---|---|---|
name | string | str | The chart object name - a unique name that can be only used once for a chart area. If duplicated, the chart object will be replaced with a new one of the same name. |
barIndex1 | int | int | The bar index of the Fibonacci timezones start point location on the X-axis. |
y1 | double | float | The Y-axis value of the Fibonacci timezones start point location. |
barIndex2 | int | int | The Y-axis value of the Fibonacci timezones end point location. |
y2 | double | float | The Y-axis value of the Fibonacci timezones end point location. |
color | Color | Color | The Fibonacci timezones lines color. |
Returns ChartFibonacciTimezones — ChartFibonacciTimezones.
Examples
var index = Bars.Count - 1;
var timezones = Chart.DrawFibonacciTimezones("timezones", index - 30, Bars.LowPrices[index - 30], index - 25, Bars.HighPrices[index - 25], Color.Red);
Print("Fibonacci timezones levels: {0}", timezones.FibonacciLevels.Count);
index = api.Bars.Count - 1
timezones = api.Chart.DrawFibonacciTimezones("timezones", index - 30, api.Bars.LowPrices[index - 30], index - 25, api.Bars.HighPrices[index - 25], Color.Red)
api.Print(f"Fibonacci timezones levels: {timezones.FibonacciLevels.Count}")
DrawFibonacciTimezones(string name, int barIndex1, double y1, int barIndex2, double y2, Color color, int thickness)
Draws a Fibonacci timezones.
ChartFibonacciTimezones DrawFibonacciTimezones(string name, int barIndex1, double y1, int barIndex2, double y2, Color color, int thickness)
chartArea.DrawFibonacciTimezones(name: str, barIndex1: int, y1: float, barIndex2: int, y2: float, color: Color, thickness: int) -> ChartFibonacciTimezones
Parameters
| Name | C# type | Python type | Description |
|---|---|---|---|
name | string | str | The chart object name - a unique name that can be only used once for a chart area. If duplicated, the chart object will be replaced with a new one of the same name. |
barIndex1 | int | int | The bar index of the Fibonacci timezones start point location on the X-axis. |
y1 | double | float | The Y-axis value of the Fibonacci timezones start point location. |
barIndex2 | int | int | The Y-axis value of the Fibonacci timezones end point location. |
y2 | double | float | The Y-axis value of the Fibonacci timezones end point location. |
color | Color | Color | The Fibonacci timezones lines color. |
thickness | int | int | The Fibonacci timezones lines thickness. |
Returns ChartFibonacciTimezones — ChartFibonacciTimezones.
Examples
var index = Bars.Count - 1;
var timezones = Chart.DrawFibonacciTimezones("timezones", index - 30, Bars.LowPrices[index - 30], index - 25, Bars.HighPrices[index - 25], Color.Red, 2);
Print("Fibonacci timezones thickness: {0}", timezones.Thickness);
index = api.Bars.Count - 1
timezones = api.Chart.DrawFibonacciTimezones("timezones", index - 30, api.Bars.LowPrices[index - 30], index - 25, api.Bars.HighPrices[index - 25], Color.Red, 2)
api.Print(f"Fibonacci timezones thickness: {timezones.Thickness}")
DrawFibonacciTimezones(string name, int barIndex1, double y1, int barIndex2, double y2, Color color, int thickness, LineStyle lineStyle)
Draws a Fibonacci timezones.
ChartFibonacciTimezones DrawFibonacciTimezones(string name, int barIndex1, double y1, int barIndex2, double y2, Color color, int thickness, LineStyle lineStyle)
chartArea.DrawFibonacciTimezones(name: str, barIndex1: int, y1: float, barIndex2: int, y2: float, color: Color, thickness: int, lineStyle: LineStyle) -> ChartFibonacciTimezones
Parameters
| Name | C# type | Python type | Description |
|---|---|---|---|
name | string | str | The chart object name - a unique name that can be only used once for a chart area. If duplicated, the chart object will be replaced with a new one of the same name. |
barIndex1 | int | int | The bar index of the Fibonacci timezones start point location on the X-axis. |
y1 | double | float | The Y-axis value of the Fibonacci timezones start point location. |
barIndex2 | int | int | The Y-axis value of the Fibonacci timezones end point location. |
y2 | double | float | The Y-axis value of the Fibonacci timezones end point location. |
color | Color | Color | The Fibonacci timezones lines color. |
thickness | int | int | The Fibonacci timezones lines thickness. |
lineStyle | LineStyle | LineStyle | The Fibonacci timezones lines style. |
Returns ChartFibonacciTimezones — ChartFibonacciTimezones.
Examples
var index = Bars.Count - 1;
var timezones = Chart.DrawFibonacciTimezones("timezones", index - 30, Bars.LowPrices[index - 30], index - 25, Bars.HighPrices[index - 25], Color.Red, 2, LineStyle.Dots);
Print("Fibonacci timezones style: {0}", timezones.LineStyle);
index = api.Bars.Count - 1
timezones = api.Chart.DrawFibonacciTimezones("timezones", index - 30, api.Bars.LowPrices[index - 30], index - 25, api.Bars.HighPrices[index - 25], Color.Red, 2, LineStyle.Dots)
api.Print(f"Fibonacci timezones style: {timezones.LineStyle}")