PrintFormat - Common Functions - MQL5 Reference
PrintFormat () function does not work during optimization in the Strategy Tester. The number, order and type of parameters must exactly match the set of qualifiers, otherwise the print result is undefined.