How do I change the code to automatically correct for an issue of 5digit v 3 digit - page 2

 

Thanks for this thread. I like onewithzachy's method, easy for modifying existing code.

BTW, I'll use "if (Digits == 5 || Digits == 3 || Digits == 2 )", which will deal with XAUUSD or XAGUSD, etc.

Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Detect language Dutch English Estonian Filipino Finnish French Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latin Latvian Lithuanian Macedonian Malay Maltese Norwegian Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh YiddishAfrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latin Latvian Lithuanian Macedonian Malay Maltese Norwegian Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish
English (auto-detected) » Chinese (Simplified)

 
if (Digits == 5 || Digits == 3 || Digits == 2 )
2 is JPY 4 digits. you mean 1 there. Exactly the same as the code I already posted:
 if (Digits % 2 == 1)
 

hello guys any one i need help

my ea is work on 6 digits,but broker is 7 digit,and i dnt have ea mq4 file 

is thier anyway to fix it 

 
Taha Qadir Hussein Hussein: i dnt have ea mq4 file . is thier anyway to fix it 

You can't fix anything without the souce code.

Reason: