---
id: "T:cAlgo.API.CustomSymbolSentiment"
kind: "interface"
namespace: "cAlgo.API"
url: "https://help.ctrader.com/ctrader-algo/references/Plugin/Symbol/Custom/CustomSymbolSentiment/"
---

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

# CustomSymbolSentiment (interface)

Represents a custom symbol sentiment.

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

- CLI: Available to plugins only, and plugins cannot run in the CLI.
- Cloud: Available to plugins only, and plugins cannot run in the cloud.

## Definition

```csharp
public interface CustomSymbolSentiment
```

Available since cAlgo.API 5.3.

## Examples

C#:

```csharp
var customSymbol = CustomSymbols.Add("MYEURUSD", Symbols.GetSymbol("EURUSD"));
customSymbol.Sentiment.BuyPercentage = 62;
customSymbol.Sentiment.SellPercentage = 38;
Print("Sentiment: {0}% buy, {1}% sell", customSymbol.Sentiment.BuyPercentage, customSymbol.Sentiment.SellPercentage);
```

Python:

```python
customSymbol = api.CustomSymbols.Add("MYEURUSD", api.Symbols.GetSymbol("EURUSD"))
customSymbol.Sentiment.BuyPercentage = 62
customSymbol.Sentiment.SellPercentage = 38
api.Print(f"Sentiment: {customSymbol.Sentiment.BuyPercentage}% buy, {customSymbol.Sentiment.SellPercentage}% sell")
```

## Properties

- `double BuyPercentage {get; set;}` — Gets / sets buy percentage. [details](https://help.ctrader.com/ctrader-algo/references/Plugin/Symbol/Custom/CustomSymbolSentiment/BuyPercentage/index.md)
- `double SellPercentage {get; set;}` — Gets / sets sell percentage. [details](https://help.ctrader.com/ctrader-algo/references/Plugin/Symbol/Custom/CustomSymbolSentiment/SellPercentage/index.md)

