---
id: "M:cAlgo.API.Plugin.Print(System.Object)"
kind: "method"
type: "T:cAlgo.API.Plugin"
url: "https://help.ctrader.com/ctrader-algo/references/General/Plugin/Print/"
---

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

# Plugin.Print

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

## Print(object value)

Prints text representation of the specified object to the log.

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

- CLI: Plugins cannot run in the CLI: ctrader-cli runs cBots only.
- Cloud: Plugins cannot run in the cloud: it runs cBots only.

C#:

```csharp
public void Print(object value)
```

Python:

```python
api.Print(value: object) -> None
```

### Parameters

- `value` (`object`, Python `object`): Object to print.

### Examples

C#:

```csharp
Print(Positions.Count);
```

Python:

```python
api.Print(api.Positions.Count)
```

## Print(object[] parameters)

Prints a message to the Log

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

- CLI: Plugins cannot run in the CLI: ctrader-cli runs cBots only.
- Cloud: Plugins cannot run in the cloud: it runs cBots only.

C#:

```csharp
public void Print(object[] parameters)
```

Python:

```python
api.Print(parameters: list[object]) -> None
```

### Parameters

- `parameters` (`object[]`, Python `list[object]`): Parameters to print

### Examples

C#:

```csharp
Print(Account.Balance, " ", Account.Equity);
```

Python:

```python
api.Print(api.Account.Balance, " ", api.Account.Equity)
```

## Print(string message, object[] parameters)

Prints a message to the Log.

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

- CLI: Plugins cannot run in the CLI: ctrader-cli runs cBots only.
- Cloud: Plugins cannot run in the cloud: it runs cBots only.

C#:

```csharp
public void Print(string message, object[] parameters)
```

Python:

```python
api.Print(message: str, parameters: list[object]) -> None
```

### Parameters

- `message` (`string`, Python `str`): Message to print.
- `parameters` (`object[]`, Python `list[object]`): Parameters (optional)

### Examples

C#:

```csharp
Print("Current Balance is {0}, Equity is {1}.", Account.Balance, Account.Equity);
```

Python:

```python
api.Print(f"Current Balance is {api.Account.Balance}, Equity is {api.Account.Equity}.")
```

