MT5: the "Value" field in the Debug Tab displays "unknown identifier" for "input" type variables placed in the "Expression" field

 
In MT5, in the Strategy Tester, debug tab, if I try and display the values of my expressions of type "input", the value in the debug tas shows as "unknown identifier".  This function used to work fine but just stopped working properly around 1 month ago.  I figured it was maybe a bug that was introduced into MT5 and that they would correct it with their next release, but the problem still exists.

e.g. for the code statement: input bool testBOOL = true;

When the testBOOL is displayed in the debug tab as the expression, the value shows as "unknown identifier" and there is no "type" shown.

Is anyone else experiencing this issue?  Does anyone know what might be causing this.  I have been programming almost full time in MT5 for about 9 years and I have never seen this before.

I am using Version 5.00 build 4682.

I am using a custom indicator (but that did not change when the value all of a sudden stopped showing the correct value).

I'd appreciate any help you may be able to provide.  Thanks.

======================================

Here is the simplest of code that demonstrates the problem:

//+------------------------------------------------------------------+

//| Inputs                                                           |

//+------------------------------------------------------------------+

//--- inputs for expert

input string I_Tst_STR           = "D-Test";

input double I_Tst_DBL           = 10.23;

input int    I_Tst_INT           = 4;


int OnInit() {

   return(INIT_SUCCEEDED);

}


//+------------------------------------------------------------------+

//| "Tick" event handler function                                    |

//+------------------------------------------------------------------+

void OnTick() {

   string comment_STR = StringFormat("String= %s, Double= %0.2f, Integer= %d", I_Tst_STR, I_Tst_DBL, I_Tst_INT);

   Comment(comment_STR);

}

==============================

The code runs fine, the comment is displayed on the chart, BUT the debug tab does NOT show the values of the three input variables.  See the 2nd screenshot below.


The Fundamentals of Testing in MetaTrader 5
The Fundamentals of Testing in MetaTrader 5
  • www.mql5.com
What are the differences between the three modes of testing in MetaTrader 5, and what should be particularly looked for? How does the testing of an EA, trading simultaneously on multiple instruments, take place? When and how are the indicator values calculated during testing, and how are the events handled? How to synchronize the bars from different instruments during testing in an "open prices only" mode? This article aims to provide answers to these and many other questions.
 
ComplianceDesk:
In MT5, in the Strategy Tester, debug tab, if I try and display the values of my expressions of type "input", the value in the debug tas shows as "unknown identifier".  This function used to work fine but just stopped working properly around 1 month ago.  I figured it was maybe a bug that was introduced into MT5 and that they would correct it with their next release, but the problem still exists.

e.g. for the code statement: input bool testBOOL = true;

When the testBOOL is displayed in the debug tab as the expression, the value shows as "unknown identifier" and there is no "type" shown.

Is anyone else experiencing this issue?  Does anyone know what might be causing this.  I have been programming almost full time in MT5 for about 9 years and I have never seen this before.

I am using Version 5.00 build 4682.

I am using a custom indicator (but that did not change when the value all of a sudden stopped showing the correct value).

I'd appreciate any help you may be able to provide.  Thanks.

======================================

Here is the simplest of code that demonstrates the problem:

//+------------------------------------------------------------------+

//| Inputs                                                           |

//+------------------------------------------------------------------+

//--- inputs for expert

input string I_Tst_STR           = "D-Test";

input double I_Tst_DBL           = 10.23;

input int    I_Tst_INT           = 4;


int OnInit() {

   return(INIT_SUCCEEDED);

}


//+------------------------------------------------------------------+

//| "Tick" event handler function                                    |

//+------------------------------------------------------------------+

void OnTick() {

   string comment_STR = StringFormat("String= %s, Double= %0.2f, Integer= %d", I_Tst_STR, I_Tst_DBL, I_Tst_INT);

   Comment(comment_STR);

}

==============================

The code runs fine, the comment is displayed on the chart, BUT the debug tab does NOT show the values of the three input variables.  See the 2nd screenshot below.


When you post code please use the CODE button (Alt-S) !