Print Functions not showing in MT5 tester journal

 

Hello

I put print functions in my code to display information, but only some of them are displayed in jurnal .

All of them are displayed in MT4 tester but not in MT5.
Do I have to change certain settings in MT5 Tester?
Help me please.
Thanks very much
 
amir4abc :

Hello

I put print functions in my code to display information, but only some of them are displayed in jurnal .

All of them are displayed in MT4 tester but not in MT5.
Do I have to change certain settings in MT5 Tester?
Help me please.
Thanks very much

Have you checked the Full optimization logs?


 
Vladimir Karputov:

Have you checked the Full optimization logs?


Yes, Full optimization logs checked But they are not displayed. what should I do?

 
amir4abc :

Yes, Full optimization logs checked But they are not displayed. what should I do?

Use Viewer


 
Vladimir Karputov:

Use Viewer


Yes I used Viewer but They are not displayed!! :(
 
amir4abc :
Yes I used  Viewer but They are not displayed! ! :(

There is only one thing left: you have an error in the code and the matter simply does not reach the print.

 
Vladimir Karputov:

There is only one thing left: you have an error in the code and the matter simply does not reach the print.

My code is very simple, look

//+------------------------------------------------------------------+
//|                                                        Test2.mq5 |
//|                        Copyright 2020, MetaQuotes Software Corp. |
//|                                             https://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2020, MetaQuotes Software Corp."
#property link      "https://www.mql5.com"
#property version   "1.00"
//+------------------------------------------------------------------+
//| Expert initialization function                                   |
//+------------------------------------------------------------------+
long TickCount=0;
int OnInit()
  {
//---

//---
   return(INIT_SUCCEEDED);
  }
//+------------------------------------------------------------------+
//| Expert deinitialization function                                 |
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
  {
//---

  }
//+------------------------------------------------------------------+
//| Expert tick function                                             |
//+------------------------------------------------------------------+
void OnTick()
  {
//---
   TickCount++;
   Print(">> TickNumber ",TickCount);
  }
//+------------------------------------------------------------------+

But for example, only one print is done every 1000 tick

Discover new MetaTrader 5 opportunities with MQL5 community and services
Discover new MetaTrader 5 opportunities with MQL5 community and services
  • www.mql5.com
Dozens of new automated trading applications appear in the MQL5 Market every day. Choose the right app among 10,000 products and forget about unnecessary routine operations of manual trading. Sell your algorithmic trading programs through the largest store of trading applications! One Click Close The script allows users to easily close...
 
amir4abc :

My code is very simple, look

But for example, only one print is done every 1000 tick

Can not be. Your code prints ON EVERY TICK.


You made a mistake yourself: remove the Expert Advisor from all charts. Compile the code again. Add an expert to the chart.

 
Vladimir Karputov:

Can not be. Your code prints ON EVERY TICK.


You made a mistake yourself: remove the Expert Advisor from all charts. Compile the code again. Add an expert to the chart.

It also prints for me in real time, but in the tester, why doesn't this happen?
 
amir4abc :
It also prints for me in real time, but in the tester, why doesn't this happen?

And everything prints fine in the tester:


but until then there will be no variable overflow. You have declared the variable 'TickCount' and at every tick, UNCONTROLLY INCREASE ITS VALUE. Eventually the 'long' type overflows.

 
Vladimir Karputov:

And everything prints fine in the tester:


but until then there will be no variable overflow. You have declared the variable 'TickCount' and at every tick, UNCONTROLLY INCREASE ITS VALUE. Eventually the 'long' type overflows.

So why not show it for me?