Yuri_I wrote: Thu Mar 18, 2021 1:22 am
Open the properties of this indicator and write the symbols as they appear in your MT4. I think so. Why once again strain a person.
That post was not meant for you, so no need for your response. I've been here for a little while now and I don't make unneccesary requests. Xard understands what I mean. The price display on the XU Panel comes out with many decimal places. This is because my broker symbol is "GER30.i" and Xard doesn't have that in his code. I could easily fix that if I had the .mq4 file.
XARD: I already have GER in the code, it should work as GER30
if( StringFind( aPairs[x], "JPY", 0) != -1 ) { Precision = 100; nDigits = 2+digits;}
else if( StringFind( aPairs[x], "WS3", 0) != -1 ) { Precision = 1; nDigits = 0+digits;}
else if( StringFind( aPairs[x], "DJ", 0) != -1 ) { Precision = 1; nDigits = 0+digits;}
else if( StringFind( aPairs[x], "DOW", 0) != -1 ) { Precision = 1; nDigits = 0+digits;}
else if( StringFind( aPairs[x], "US3", 0) != -1 ) { Precision = 1; nDigits = 0+digits;}
else if( StringFind( aPairs[x], "#US", 0) != -1 ) { Precision = 1; nDigits = 0+digits;}
else if( StringFind( aPairs[x], "US5", 0) != -1 ) { Precision = 10; nDigits = 1+digits;}
else if( StringFind( aPairs[x], "S&P", 0) != -1 ) { Precision = 10; nDigits = 1+digits;}
else if( StringFind( aPairs[x], "SP5", 0) != -1 ) { Precision = 10; nDigits = 1+digits;}
else if( StringFind( aPairs[x], "SPX", 0) != -1 ) { Precision = 10; nDigits = 1+digits;}
else if( StringFind( aPairs[x], "UST", 0) != -1 ) { Precision = 1; nDigits = 0+digits;}
else if( StringFind( aPairs[x], "NDX", 0) != -1 ) { Precision = 1; nDigits = 0+digits;}
else if( StringFind( aPairs[x], "US1", 0) != -1 ) { Precision = 1; nDigits = 0+digits;}
else if( StringFind( aPairs[x], "NAS", 0) != -1 ) { Precision = 1; nDigits = 0+digits;}
else if( StringFind( aPairs[x], "US2", 0) != -1 ) { Precision = 10; nDigits = 1+digits;}
else if( StringFind( aPairs[x], "HK5", 0) != -1 ) { Precision = 1; nDigits = 0+digits;}
else if( StringFind( aPairs[x], "HKC", 0) != -1 ) { Precision = 1; nDigits = 0+digits;}
else if( StringFind( aPairs[x], "NIK", 0) != -1 ) { Precision = 1; nDigits = 0+digits;}
else if( StringFind( aPairs[x], "JP2", 0) != -1 ) { Precision = 1; nDigits = 0+digits;}
else if( StringFind( aPairs[x], "JPN", 0) != -1 ) { Precision = 1; nDigits = 0+digits;}
else if( StringFind( aPairs[x], "CHI", 0) != -1 ) { Precision = 1; nDigits = 0+digits;}
else if( StringFind( aPairs[x], "CAC", 0) != -1 ) { Precision = 1; nDigits = 1+digits;}
else if( StringFind( aPairs[x], "FRA", 0) != -1 ) { Precision = 1; nDigits = 1+digits;}
else if( StringFind( aPairs[x], "DAX", 0) != -1 ) { Precision = 1; nDigits = 0+digits;}
else if( StringFind( aPairs[x], "DE" , 0) != -1 ) { Precision = 1; nDigits = 0+digits;}
else if( StringFind( aPairs[x], "GER", 0) != -1 ) { Precision = 1; nDigits = 0+digits;}
else if( StringFind( aPairs[x], "#GE", 0) != -1 ) { Precision = 1; nDigits = 0+digits;}
else if( StringFind( aPairs[x], "DE3", 0) != -1 ) { Precision = 1; nDigits = 0+digits;}
else if( StringFind( aPairs[x], "ITA", 0) != -1 ) { Precision = 1; nDigits = 0+digits;}
else if( StringFind( aPairs[x], "ESP", 0) != -1 ) { Precision = 1; nDigits = 1+digits;}
else if( StringFind( aPairs[x], "SPA", 0) != -1 ) { Precision = 1; nDigits = 1+digits;}
else if( StringFind( aPairs[x], "FTS", 0) != -1 ) { Precision = 1; nDigits = 1+digits;}
else if( StringFind( aPairs[x], "UK1", 0) != -1 ) { Precision = 1; nDigits = 1+digits;}
else if( StringFind( aPairs[x], "UKO", 0) != -1 ) { Precision = 1000; nDigits = 3+digits;}
else if( StringFind( aPairs[x], "USO", 0) != -1 ) { Precision = 1000; nDigits = 3+digits;}
else if( StringFind( aPairs[x], "WTI", 0) != -1 ) { Precision = 1000; nDigits = 3+digits;}
else if( StringFind( aPairs[x], "BRE", 0) != -1 ) { Precision = 1000; nDigits = 3+digits;}
else if( StringFind( aPairs[x], "XAG", 0) != -1 ) { Precision = 100; nDigits = 3+digits;}
else if( StringFind( aPairs[x], "SIL", 0) != -1 ) { Precision = 100; nDigits = 3+digits;}
else if( StringFind( aPairs[x], "NAT", 0) != -1 ) { Precision = 100; nDigits = 3+digits;}
else if( StringFind( aPairs[x], "XAU", 0) != -1 ) { Precision = 10; nDigits = 1+digits;}
else if( StringFind( aPairs[x], "GOL", 0) != -1 ) { Precision = 10; nDigits = 1+digits;}
else if( StringFind( aPairs[x], "BTC", 0) != -1 ) { Precision = 1; nDigits = 0+digits;}
else { Precision = 10000; nDigits = 4+digits;}