---
id: "M:cAlgo.API.Internals.INotifications.ShowPopup(System.String,System.String,cAlgo.API.PopupNotificationState)"
kind: "method"
type: "T:cAlgo.API.Internals.INotifications"
url: "https://help.ctrader.com/ctrader-algo/references/Notifications/INotifications/ShowPopup/"
---

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

# INotifications.ShowPopup

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

## ShowPopup(string caption, string message, PopupNotificationState initialState)

Shows a popup notification.

Environments: Desktop supported · CLI not supported · Cloud not supported.

- CLI: No popup is shown. Returns a PopupNotification whose State is the initial state passed in.
- Cloud: No popup is shown. Returns a PopupNotification whose State is the initial state passed in.

C#:

```csharp
PopupNotification ShowPopup(string caption, string message, PopupNotificationState initialState)
```

Python:

```python
api.Notifications.ShowPopup(caption: str, message: str, initialState: PopupNotificationState) -> PopupNotification
```

### Parameters

- `caption` (`string`, Python `str`): Caption or title.
- `message` (`string`, Python `str`): Message or description.
- `initialState` (`PopupNotificationState`, Python `PopupNotificationState`): Initial state of notification.

### Returns

`PopupNotification` — 

Available since cAlgo.API 5.3.

### Examples

C#:

```csharp
using cAlgo.API;

namespace cAlgo.Robots;

public partial class TestExample : Robot
{
    protected override void OnStart()
    {
        Notifications.ShowPopup("Caption", "Message", PopupNotificationState.Success);
    }
}
```

Python:

```python
import clr

clr.AddReference("cAlgo.API")

# Import cAlgo API types
from cAlgo.API import *

# Import trading wrapper functions
from robot_wrapper import *

class Test():
    def on_start(self):
        api.Notifications.ShowPopup("Caption", "Message", PopupNotificationState.Success)
```

config.json:

```json
{
  "AccessRights": "None"
}
```

