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

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

# Algo.Print

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

## Print(object value)

Prints text representation of the specified object to the log.

Environments: Desktop supported · CLI works differently · Cloud works differently.

- CLI: Lines go to ctrader-cli standard output as 'time | level | message'; no Log tab and no instance log file is written.
- Cloud: Lines go to the cloud host output as 'level | message' with no timestamp; no instance log file is written.

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 works differently · Cloud works differently.

- CLI: Lines go to ctrader-cli standard output as 'time | level | message'; no Log tab and no instance log file is written.
- Cloud: Lines go to the cloud host output as 'level | message' with no timestamp; no instance log file is written.

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 works differently · Cloud works differently.

- CLI: Lines go to ctrader-cli standard output as 'time | level | message'; no Log tab and no instance log file is written.
- Cloud: Lines go to the cloud host output as 'level | message' with no timestamp; no instance log file is written.

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}.")
```

