Can mql4 identify the asset class of instrument i am trading

Greetings folks.

I am currently trading 3 different asset classes using a simple EA for position sizing. I would like to know if and how MQL4 can identify the asset class of my current chart in order to auto change some of the parameters in the program.

Can this be done?

if(Symbol() == “EURUSD”)
{
some code here. …
}
if that is what you are looking for, but I am guessing that I am missing the question?

Yes it can.

MODE_MARGINCALCMODE
28
Margin calculation mode. 0 - Forex; 1 - CFD; 2 - Futures; 3 - CFD for indices