cAlgo Improvement - Asset category via Symbols.SymbolInfo properties

Created at 30 Jul 2024, 15:21
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!
AD

adrien.le.quilleuc

Joined 12.07.2024

cAlgo Improvement - Asset category via Symbols.SymbolInfo properties
30 Jul 2024, 15:21


Enable the possibility to get Asset category via Symbols.SymbolInfo properties to distinguishes indices, crypto, forex, metals, etc.

have it on cTrader Desktop as well via the GUI

best,
Adrien

 


@adrien.le.quilleuc
Replies

firemyst
01 Aug 2024, 06:58 ( Updated at: 01 Aug 2024, 12:15 )

If you have a suggestion, you need to post it in the Suggestion forum:

https://ctrader.com/forum/suggestions/

 

Spotware won't look here for suggestions because this is for technical support.

However, you could accomplish what you want now in a round-about way. Just build your own structures and put the relevant symbol in each structure.

For instance, in C# code, create a HashTable with all the Indices you want to trade, or could trade. Call the HashTable AssetCategory_Indices; similarly, do one for all the forex pairs you might trade.

Then you can check which asset category the current symbol is in by checking each of your HashTables.

 


@firemyst