Algo.Symbol for a specific symbol name

Created at 04 Nov 2021, 23:27
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
EY

eynt

Joined 08.05.2020

Algo.Symbol for a specific symbol name
04 Nov 2021, 23:27


How can I get Algo.Symbol for a specific symbol name (for example, "EURUSD") and not for my chart's symbol?

 

Thanks


@eynt
Replies

amusleh
05 Nov 2021, 07:39

Hi,

The Symbol property of indicators/cBots is the chart symbol.

To get other symbols use the Symbols collection:

var symbol = Symbols.GetSymbol("EURUSD");

 


@amusleh