Exporting history script - why is it only exporting 3 digits?

 

hi

i have this script to export the history of all 28 pairs, but why is it on some pairs only exporting 3 digits instead of 5? (not talking of the JPY pairs).

sending attached the script.

 

It's probably this line:

 iDigits=MarketInfo(Symbol(),MODE_DIGITS);

Replace Symbol() with dSymbol and try again.

 
lippmaje:

It's probably this line:

Replace Symbol() with dSymbol and try again.

Thanks a lot it always works!!

Reason: