How can I get symbols information from Symbols/MarketWatch tab by cBot?

Created at 17 May 2018, 19:15
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!
FMogyi's avatar

FMogyi

Joined 13.10.2015

How can I get symbols information from Symbols/MarketWatch tab by cBot?
17 May 2018, 19:15


Hi,

I would like to write a multi currency, multiTF cBot. So I need information about all of available/tradeable  Symbols.

How can I get them? 

Here is the mql5 source.  what I want in cAlgo:

int NumberofSymbols = SymbolsTotal(true);  //Returns the number of available (selected in Market Watch or all) symbols

   
   for (i = 0;  i < NumberofSymbols; i++)
   {
     CurrentSymbol = SymbolName(i,1);  //Returns the name of a symbol.

  //work with the selected symbol...

  }

 

Thanks.

Norbert

 


@FMogyi
Replies

PanagiotisCharalampous
18 May 2018, 09:29

Hi FMogyi,

This information is currently not available in cAlgo.API. It will be added in the future.

Best Regards,

Panagiotis


@PanagiotisCharalampous

FMogyi
21 May 2018, 16:37

RE:

How can I check that the selected symbol is open or close for trading?


@FMogyi

PanagiotisCharalampous
22 May 2018, 09:00

Hi FMogyi,

You can use  Symbol.MarketHours

Best Regards,

Panagiotis


@PanagiotisCharalampous

FMogyi
23 May 2018, 12:35 ( Updated at: 21 Dec 2023, 09:20 )

Ooops! My cAlgo (2.01) doesn't know this member!


@FMogyi

PanagiotisCharalampous
23 May 2018, 12:39

Hi FMogyi,

It is available in cTrader 3.0. You should receive the update very soon, since we started rolling out the update.

Best Regards,

Panagiotis


@PanagiotisCharalampous