Algo.Symbol for a specific symbol name

yuval.ein since: 08 May 2020;

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

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

Thanks

amusleh's avatar

amusleh since: 01 Mar 2021;

  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");
Community Developer | Spotware | Telegram: @algodeveloper