Download MetaTrader 5

Where is output sent from PRINT(. . .) function?

To add comments, please log in or register
Log in to MQL5.community using OpenID. It is convenient!
Chuck Gibson
25
Chuck Gibson 2015.01.27 00:17 

I have looked everywhere - and cannot find the output location from using the PRINT (. . .) function in MQL4

I expected to find it in ./MQL4/Files but that folder is empty.

Where else should I look?

Thank you for the assist.

...Chuck...

Stuart Browne
5815
Stuart Browne 2015.01.27 00:34  
csgibson88:

I have looked everywhere - and cannot find the output location from using the PRINT (. . .) function in MQL4

I expected to find it in ./MQL4/Files but that folder is empty.

Where else should I look?

Thank you for the assist.

...Chuck...

If you're talking about THIS  print function, output is to the log file which also gets displayed to the MT4 journal/experts tab
Print - MQL4 Documentation
  • docs.mql4.com
Print - MQL4 Documentation
Chuck Gibson
25
Chuck Gibson 2015.01.27 00:40  
Filter:
If you're talking about THIS  print function, output is to the log file, also gets printed to the MT4 journal/experts tab

Thank you Mr. Moderator for the quick response. YES - I see the output on the "Experts" tab. I am curious about "the log file"???

Where is this elusive "log file" found??

...Chuck...

Stuart Browne
5815
Stuart Browne 2015.01.27 01:07  
csgibson88:

Thank you Mr. Moderator for the quick response. YES - I see the output on the "Experts" tab. I am curious about "the log file"???

Where is this elusive "log file" found??

...Chuck...

If you right click on the MT4 journal you will see an option for opening the log file (sorry, not at my trading PC right now so can't remember the exact menu item)
Chuck Gibson
25
Chuck Gibson 2015.01.27 01:25  
Filter:
If you right click on the MT4 journal you will see an option for opening the log file (sorry, not at my trading PC right now so can't remember the exact menu item)

Thank you for your support - I think you really answered all my (valid) questions in your first reply:

The output of the PRINT function is *only* directed to the "Experts" tab in the MT4 Terminal. As the doco says:

Print

It enters a message in the Expert Advisor log. Parameters can be of any type.


It was my misunderstanding of the word "log" - in my mind, I was reading "logfile", as if there is some file out in some folder that would contain the output from PRINT.

But, that is simply not the case - the output is on the "Experts" tab. If I want to direct output to a LOGFILE - then I should resort to FOPEN, FWRITE and FCLOSE.

Once again - thank you for your support! You are AMAZING.

...Chuck...

Stuart Browne
5815
Stuart Browne 2015.01.27 01:28  
csgibson88:

Thank you for your support - I think you really answered all my (valid) questions in your first reply:

The output of the PRINT function is *only* directed to the "Experts" tab in the MT4 Terminal. As the doco says:

Print

It enters a message in the Expert Advisor log. Parameters can be of any type.


It was my misunderstanding of the word "log" - in my mind, I was reading "logfile", as if there is some file out in some folder that would contain the output from PRINT.

But, that is simply not the case - the output is on the "Experts" tab. If I want to direct output to a LOGFILE - then I should resort to FOPEN, FWRITE and FCLOSE.

Once again - thank you for your support! You are AMAZING.

...Chuck...

Very welcome Chuck, sorry for slightly misleading you. Haven't had enough coffees this morning :)
To add comments, please log in or register