Vous êtes sur la page 1sur 3

Users' Knowledge Base

Share your experience, code and everything with other


AmiBroker Users.
January 21, 2007
DebugView: Introduction and Setup
DebugView is an essential development, debugging, and trading tool.
When developing Automated Trading Systems, you need to know when orders have gone out, what their
parameters were, whether they were accepted and processed, what error messages were received, etc.
When you place an automated order, you cannot simply assume that your order was executed and filled.
You must always verify order and system status and be able to act on irregularities.
Debugging techniques reflect personal working habits, and the examples youll find in the Debug
Category of the Users Knowledge Base are intended to help you develop your own debugging strategies,
not to provide the perfect debugging setup for you.
Using _TRACE() statements will slow down the speed of code executions somewhat, and you should
exercise care when using them. For example, you should never permanently embed _TRACE() statements
inside a loop with a thousand iterations. This would result in thousands of lines being output to DebugView
and noticeably slow down your AFL execution. Another option is to selectively enable and disable
_TRACE() output by using the Param() user input; this topic is covered under the heading of DebugView:
_TRACE() Statements and Logging.
You can use DebugView to create a detailed logging file that will show you exactly what happened, when
it happened, and in what sequence. To reject output from other programs on your computer, all _TRACE()
output strings start with a # character. This is done so that you can set up your DebugView -> Edit ->
Filter/HighLight to pass only your statements that begin with #:
To install DebugView, download, unzip, and copy the dbgview.exe program to the C:\Program
Files\AmiBroker\DebugView folder. Then, in AmiBroker, go to Tools -> Customize -> Tools -> New and
change MenuItem to DebugView. Next, click on the three dots inside the Command box and browse for
the DebugView program, which is located at C:\Program Files\AmiBroker\DebugView\Dbgview.exe, and
click on it. Finally, click the Close button, and you are finished. From now on, you can start up
DebugView from AmiBroker by simply clicking Tools -> DebugView.
AmiBroker Users Knowledge Base DebugView: Introduction and Setup http://www.amibroker.org/userkb/2007/01/21/debugview/
1 of 3 6/19/2014 1:50 PM
It cannot be stressed enough that DebugView is an indispensable tool in the development of Real-Time
Automated trading systems.
DebugView is free, and you can download it from http://www.microsoft.com/technet/sysinternals/utilities
/debugview.mspx
Edited by Al Venosa
Filed by Herman at 12:55 am under Debugging AFL
Comments Off
(1 votes, average: 5.00 out of 5)
Comments are closed.
Info
Table Of Contents
Contributor Agreement
About
Author Guide
Contacts
FAQ
Terms of Use
Recent Posts
EOD Gap-Trading Portfolio system
A Long-only EOD Gap trading idea
Bollinger Band ZigZag Indicator
A Subliminal Intraday Trading Tool
AmiBroker Users Knowledge Base DebugView: Introduction and Setup http://www.amibroker.org/userkb/2007/01/21/debugview/
2 of 3 6/19/2014 1:50 PM
Using IIF(), IF() and Switch() functions
Recent Comments
Richard Dale on Data Resources Forex
Herman on Request Real-Time Topics here
Mike B on Request Real-Time Topics here
Tomasz Janeczko on US-Stocks Database (v2)
brian_z on Setup A Custom Database Nasdaq
Categories
Archives
October 2011 (1)
September 2011 (1)
August 2011 (1)
July 2011 (1)
April 2011 (2)
March 2011 (6)
February 2011 (2)
January 2011 (2)
February 2009 (2)
August 2008 (1)
April 2008 (1)
March 2008 (20)
February 2008 (6)
January 2008 (1)
December 2007 (4)
November 2007 (18)
October 2007 (17)
September 2007 (17)
August 2007 (26)
July 2007 (20)
June 2007 (17)
May 2007 (8)
April 2007 (16)
January 2007 (1)
Meta
Log in
Entries RSS
Comments RSS
WordPress.org
Copyright (C)2006 AmiBroker.com.
This site uses WordPress Page generated in 0.436 seconds.
AmiBroker Users Knowledge Base DebugView: Introduction and Setup http://www.amibroker.org/userkb/2007/01/21/debugview/
3 of 3 6/19/2014 1:50 PM

Vous aimerez peut-être aussi