---
id: "T:cAlgo.API.ChartPriceAxisPosition"
kind: "enum"
namespace: "cAlgo.API"
url: "https://help.ctrader.com/ctrader-algo/references/Chart/ChartPriceAxisPosition/"
---

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

# ChartPriceAxisPosition (enum)

Represents the side of the chart where the price axis is displayed.

Environments: Desktop supported · CLI supported · Cloud supported.

## Definition

```csharp
public enum ChartPriceAxisPosition
```

Available since cAlgo.API 5.10.

## Examples

C#:

```csharp
using cAlgo.API;

namespace cAlgo
{
    // This example shows how to use the Chart ChartPriceAxisPosition
    public partial class ChartPriceAxisPositionSample : Indicator
    {
        protected override void Initialize()
        {
            Chart.PriceAxisPosition = Chart.PriceAxisPosition == ChartPriceAxisPosition.Right
                ? ChartPriceAxisPosition.Left
                : ChartPriceAxisPosition.Right;

            Print("Price axis position: {0}", Chart.PriceAxisPosition);
        }

        public override void Calculate(int index)
        {
        }
    }
}
```

Python:

```python
import clr
clr.AddReference("cAlgo.API")

from cAlgo.API import *

class Test():
    def initialize(self):
        if api.Chart.PriceAxisPosition == ChartPriceAxisPosition.Right:
            api.Chart.PriceAxisPosition = ChartPriceAxisPosition.Left
        else:
            api.Chart.PriceAxisPosition = ChartPriceAxisPosition.Right

        print(f"Price axis position: {api.Chart.PriceAxisPosition}")
```

config.json:

```json
{
  "AccessRights": "None",
  "TimeZone": "UTC",
  "IsOverlay": true
}
```

## Values

- `ChartPriceAxisPosition.Right` — The price axis is displayed on the right side of the chart.
- `ChartPriceAxisPosition.Left` — The price axis is displayed on the left side of the chart.

