---
id: "P:cAlgo.API.MarketSessionChangedEventArgs.NewSessions"
kind: "property"
type: "T:cAlgo.API.MarketSessionChangedEventArgs"
url: "https://help.ctrader.com/ctrader-algo/references/EventArgs/MarketSessionChangedEventArgs/NewSessions/"
---

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

# MarketSessionChangedEventArgs.NewSessions

Member of [MarketSessionChangedEventArgs](https://help.ctrader.com/ctrader-algo/references/EventArgs/MarketSessionChangedEventArgs/index.md).

## NewSessions

All current sessions including any new sessions that have just begun. The value of NewSessions is always equal to the value of the MarketSessions property of a cBot / indicator. Returns MarketSession.None if no new sessions started when the MarketSessionsChanged event was triggered.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
public MarketSession NewSessions {get;}
```

Python:

```python
marketSessionChangedEventArgs.NewSessions: MarketSession
```

### Returns

`MarketSession` — 

### Examples

C#:

```csharp
protected override void OnStart()
{
    MarketSessionsChanged += OnMarketSessionsChanged;
}

private void OnMarketSessionsChanged(MarketSessionChangedEventArgs args)
{
    if (args.NewSessions.HasFlag(MarketSession.London))
        Print("London session is open");
}
```

Python:

```python
def on_start(self):
    api.MarketSessionsChanged += self.on_market_sessions_changed

def on_market_sessions_changed(self, args):
    if args.NewSessions.HasFlag(MarketSession.London):
        api.Print("London session is open")
```

