Algo.Symbol for a specific symbol name

Created at 04 Nov 2021, 23:27
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