i make this function to identify ZZZ, XXX, YYY, DDD of a specific symbol
i tested it on all the brokers that i am using and it gives me correct results (that's what i thought)
i tested it on all the brokers that i am using and it gives me correct results (that's what i thought)
Inserted Code
void ZZZ_XXX_YYY_DDD(string temp_pair){
string ZZZ, XXX, YYY, DDD;
int Sector = (int)SymbolInfoInteger(temp_pair,SYMBOL_SECTOR);
Print("Sector = "+EnumToString(ENUM_SYMBOL_SECTOR(Sector)));
if(ENUM_SYMBOL_SECTOR(Sector)==SECTOR_INDEXES) ZZZ = temp_pair;
else ZZZ = StringSubstr(temp_pair,0,3);
XXX = SymbolInfoString(temp_pair,SYMBOL_CURRENCY_PROFIT);
YYY = SymbolInfoString(temp_pair,SYMBOL_CURRENCY_MARGIN);
DDD = AccountInfoString(ACCOUNT_CURRENCY);
Print("Symbol = "+temp_pair+" /// ZZZ = "+ZZZ+" /// XXX = "+XXX+" /// YYY = "+YYY+" /// DDD = "+DDD);
} 2