First test no display, why?

 

Hi guys.

I wrote these simple codes below.

void OnTick()
{
   string Text = "The value is:  ";   
   datetime LocalTime = TimeLocal();
   Comment (Text, LocalTime);
}

And run it on Strategy Tester.

But no display output, why?

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.
 
Run it using visual mode; Comment displays on the chart.
 

Thanks for your help man. it's working now.

This is my first successful MQL5 and strategy tester test.