Is there a way to identify the type of a certain pair ?
Check MarketInfo() function with MODE_PROFITCALCMODE and MODE_MARGINCALCMODE
Print("Profit calculation mode=",MarketInfo(Symbol(),MODE_PROFITCALCMODE)); Print("Margin calculation mode=",MarketInfo(Symbol(),MODE_MARGINCALCMODE));
In my experience brokers correctly mark forex symbols. Other symbols you must verify for each broker separately.
I was just wondering if there is any way to identify the type of a certain pair (by type i mean to identify if its currency pair , or indices or crypto pair )
I tried Using this :
I was hoping that SYMBOL_DESCRIPTION might give me some useful information which can help me identify what is the type of the selected pair is
but the above statement just printed Empty value on the logs
so i was wondering if there is a way to identify the type ?
also what is the SYMBOL_DESCRIPTION Used for ? i tried looking at it in the docs but there isnt much info about it ?
thank you