• phone +1.954.4163300
  • time-img Mon.-Fri. 10:00-18:00 EST
English Germany Turkish

This tool is a DLL library that can be used from any trading development application, such as MetaTrader and TradeStation.

Description

This add-on provides a better overview of the debugging process. Unfortunately, current versions of TradeStation, Wealth Lab, and MetaTrader have limited debug output windows. LogViewer2 can help you with your debugging needs. We've two different versions of LogViewer available. This version is the initial; we call it LogViewer2. It doesn’t have as many features as MT4Logger.

Features

  • Compatible with TradeStation, MetaTrader4, MetaTrader5, NinjaTrader, and many others
  • Written in C++
  • Free of charge FOREVER
  • Customizable colors and fonts
  • Automatically mark lines for faster detection
  • Save output as .txt file
  • Multicolor output
  • Automatically export logs to notepad
  • Programmatically delete log lines
  • Unlimited number of lines
  • Automatically resize, save, and load bounds
  • Multithread safe
  • Can be used from different sources simultaneously

Compatibility

  • MetaTrader4 supports all builds (including new releases)
  • Tested with TradeStation 8.x/9.x, and will be compatible with all upcoming versions
  • Tested with NinjaTrader
  • Tested with MultiCharts
  • Tested with C# and C++
  • Old and new versions are compatible with any language (require the ability to install DLL files for your platform)

Licence

LogViewer2 is freeware, so users can embed it anywhere. NO CHARGE

Installation & Demofiles

Installation may vary by application. DLL files must be placed in an application’s DLL include path or the Windows’ DLL include path; for example, the 64-bit shared library include path is %windir%\SysWOW64. In MetaTrader4 (builds 0600 and below), the library path is %MetaTrader4%\experts\libraries. In TradeStation, the include path is %TSPATH%\Program\.

You may need to enable DLL execution because it's sometimes disabled by default (for security reasons). This tool was released as a DLL, so you’ll need to enable DLL Execution.

Screenshoots

Functions

bool LogAdd(str Line)

This function adds a line to LogViewer. It also shows the LogViewer window whether it’s closed or it’s called for the first time. Nearly all settings are saved in the registry and will be restored on each new view. Returns “true” if successful

bool LogAddColor(str Line,int Color)

This function has the same behavior as LogAdd(). Output color can also be defined. Color constants are the same as web constants. This integer value represents RGB in hex; for example, white is defined as 0xFFFFFF, black as 0x000000, and maroon as 0x800000. You can refer to the Internet for more RGB color combinations.

Refer to the help files of your particular development software in order to determine supported color constants.

TradeStation doesn’t know the content for maroon. We already know the hex value of maroon (0x800000), so we can simply convert it to dec. In dec, it’s 128

Useful link about color constants is here. See the "Access" column for decimal values.

bool LogClear()

Use this function to delete all LogViewer lines. Please note that this function will also delete lines that were added from other studies. Returns “true” if successful.

bool LogMarkString(str Mark)

Strings marked with this function can be changed. To disable marking, empty the string. Returns “true” if successful.

Demonstration

Tradestation Demo #1

This code detects uptrend as well as downtrend. It can also output data trends to the LogViewer window. Please note that this sample requires version 0.4.2 and above.

Metatrader Demo #1

Technical Notes

LogViewer2 add-on uses the windows registry to save settings. For anyone interested in its registry location, look in HKEY_CURRENT_USER\Software\LogViewer. You can delete these keys to reset all settings. Since version 0.4, we've added a second DLL called LogViewer2Helper. To support MetaTrader and MultiCharts, we had to make this separation. Please note that if you’re using TradeStation you’ll need version 0.4.2 and above.

Downloads

Version Description Download
2.4.3
  • Several bugs fixed
  • Stable version
Download v2.4.3
0.4.2
  • New function: LogAddColor
  • Notepad support
  • Auto scrolling improved
-
0.4
  • Added MetaTrader support
-
0.2.24
  • Initial release version (no MetaTrader support)
-