
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Good day. I am new to MQL5 and am enjoying the platform, but I am a little puzzled by something and need to ask asstance. If you can shed some light on why this might be happening, I would be very appreciative.
BACKGROUND
I created a indicator which is working fine. I then tried printing specific values from the indicator and this is where I started running into difficulties. I found several print related functions in the reference manual, everything from the basic "Print" function, to "Comment", and trying to print things to file, along with some very long and complicated print functions.
My understanding is the "Print" function outputs to the "Experts" tab and the "Comment" function outputs to the indicator chart screen, correct?
But I cannot see any output in either of these respective locations.
Furthermore, I found a youtube video showing basic use of the Print function for MQL5 (see code below). In the video, the output appears correctly, but in my case no output appears on the platform.
QUESTION
What am I doing wrong? Is there some library I need to include or setting somewhere that enables print ouput?
If so, where do I do that?
Thanks in advance.
CODE BLOCK
This is the code section I am trying to use to test the print capabilities and the code compiles fine without any errors or warnings.
As I mentioned, in the Youtube video this works just fine and reprints these two values on the "Experts" tab everytime you change a time series.
But in my platform, nothing happens.
?????????????
//
int OnInit()
{
//---
Print("OnInit");
//---
return(INIT_SUCCEEDED);
}
//+------------------------------------------------------------------+
//| Expert deinitialization function |
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
{
//---
Print("DeInit");
}