---
id: "P:cAlgo.API.ChartFibonacciBase.LineStyle"
kind: "property"
type: "T:cAlgo.API.ChartFibonacciBase"
url: "https://help.ctrader.com/ctrader-algo/references/Chart/Drawings/Fibonacci/ChartFibonacciBase/LineStyle/"
---

> Documentation index for agents: https://help.ctrader.com/ctrader-algo/llms.txt · machine index: https://help.ctrader.com/ctrader-algo/api.json

# ChartFibonacciBase.LineStyle

Member of [ChartFibonacciBase](https://help.ctrader.com/ctrader-algo/references/Chart/Drawings/Fibonacci/ChartFibonacciBase/index.md).

## LineStyle

Gets or sets the lines style.

Environments: Desktop supported · CLI works differently · Cloud works differently.

- CLI: Created and kept with all its properties, but never drawn: the CLI displays no chart.
- Cloud: Created and kept with all its properties, but never drawn: the cloud displays no chart.

C#:

```csharp
LineStyle LineStyle {get; set;}
```

Python:

```python
chartFibonacciBase.LineStyle: LineStyle
```

### Returns

`LineStyle` — 

### Examples

C#:

```csharp
var retracement = Chart.DrawFibonacciRetracement("retracement", Bars.OpenTimes.Last(50), Bars.HighPrices.Last(50), Bars.OpenTimes.LastValue, Bars.LowPrices.LastValue, Color.Red);
retracement.LineStyle = LineStyle.DotsRare;
Print("Fibonacci lines style: {0}", retracement.LineStyle);
```

Python:

```python
retracement = api.Chart.DrawFibonacciRetracement("retracement", api.Bars.OpenTimes.Last(50), api.Bars.HighPrices.Last(50), api.Bars.OpenTimes.LastValue, api.Bars.LowPrices.LastValue, Color.Red)
retracement.LineStyle = LineStyle.DotsRare
api.Print(f"Fibonacci lines style: {retracement.LineStyle}")
```

