Symbols.GetSymbol not working, returning "symbol not found"

Created at 15 Jan 2021, 16:36
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!
VL

vldmarton

Joined 26.08.2020

Symbols.GetSymbol not working, returning "symbol not found"
15 Jan 2021, 16:36


Hi,

So Im trying to write a bot that will monitor indicator values on two or three different markets. When I try to run optimization, I get this error:

Following code is in my bot:

foreach (Symbol symbol in Symbols.GetSymbols("USDCHF", "EURUSD", "AUDCAD"))
{
    Print(symbol.Name);
}

I add EURUSD instance to my bot, then select 250 tick timeframe and run the optimization. All results return 0. What is wrong here?

 


@vldmarton
Replies

PanagiotisCharalampous
18 Jan 2021, 08:08

Hi vldmarton,

This method is not supported in optimization at the moment.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous