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

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

# ChartRiskReward.RewardLineStyle

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

## RewardLineStyle

Gets or sets the reward 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 RewardLineStyle {get; set;}
```

Python:

```python
chartRiskReward.RewardLineStyle: LineStyle
```

### Returns

`LineStyle` — 

Available since cAlgo.API 5.2.

### Examples

C#:

```csharp
var riskReward = Chart.DrawRiskReward("rr", Bars.OpenTimes.Last(10), Bars.OpenTimes.LastValue, Symbol.Ask, OrderType.Market, TradeType.Buy, new ChartRiskRewardFixedRiskType(ChartRiskRewardAmountType.BalancePercentage, 1));
riskReward.RewardLineStyle = LineStyle.Lines;
Print("Reward line style: {0}", riskReward.RewardLineStyle);
```

Python:

```python
riskReward = api.Chart.DrawRiskReward("rr", api.Bars.OpenTimes.Last(10), api.Bars.OpenTimes.LastValue, api.Symbol.Ask, OrderType.Market, TradeType.Buy, ChartRiskRewardFixedRiskType(ChartRiskRewardAmountType.BalancePercentage, 1))
riskReward.RewardLineStyle = LineStyle.Lines
api.Print(f"Reward line style: {riskReward.RewardLineStyle}")
```

