Logs

ESB can log everything from actions, errors, warnings and even indicators data. You can use ESB as a data logger by simply using these options. ESB is the simplest and fastest method for creating a complicated forex data logger.

Log Actions into Journal: This option logs everything in the journal. Every time an error or failure will happen or new action is done, just check the journal to find its complete information about that.

Log Actions into File: This is like the previous option but logs everything in a log file named “<your robot name>_<type>_<symbol>_<timeframe>_<magicnumber>_ actions.log” that can be found in MQL data folder. Go to the “File > Open Data Folder” menu. If you are in strategy tester go to the “Tester > Files” folder and if you are in live mode (real or demo) go to the “MQL4 > Files” folder.

Log Indicators into CSV File: The most useful log options is this one. Just set your desired indicators and enable this option. Some of the items that you can log are as follows:

  • Every tick data like Ask, Bid, TIME, Spread or any combinations of these
  • All supported indicators and any combinations of those
  • The result of any formula or expression
  • All account information
  • All orders information
  • All market information

Log Signals into CSV File: This one logs all signals in a log file named “<your robot name>_<type>_ <symbol>_<timeframe>_<magicnumber>_signals.csv”

You can convert CSV files to any data file that can be loaded from any programming language or IDE. Suppose you are implementing an algorithm in Matlab or C# or Android or anywhere and you need market data. Just set up a logger by ESB and use its output in your application. Another interesting application of logger is logging market data to verify charts and knows about brokers and cheaters. A useful application of logger is to log live ticks and compare it with historical data or import it as history data in MT4 or any Trading Platform. There are infinite applications that need loggers and here we just mentioned a few of them. Many potential buyers in the market need LOGs data. Go ahead and say them you can!

Logs data are written in a file that named “<your robot name>_<type>_<symbol>_<timeframe>_<magicnumber>_ indicators.CSV” that can be found in MQL data folder. Go to the “File > Open Data Folder” menu. If you are in strategy tester go to the “Tester > Files” folder and if you are in live mode (real or demo) go to the “MQL4 > Files” folder.