{"id":2035,"date":"2011-02-14T18:25:46","date_gmt":"2011-02-14T18:25:46","guid":{"rendered":"http:\/\/www.amibroker.org\/userkb\/?p=2035"},"modified":"2012-01-29T15:14:37","modified_gmt":"2012-01-29T15:14:37","slug":"developing-a-real-time-trading-dashboard","status":"publish","type":"post","link":"http:\/\/www.amibroker.org\/editable_userkb\/2011\/02\/14\/developing-a-real-time-trading-dashboard\/","title":{"rendered":"Designing a Real-Time Trading Dashboard"},"content":{"rendered":"
In this category I will document my progress in developing a Real-Time Trading Dashboard (TDash). This is a one-man project and it will strongly reflect my personal needs and likes. Posts will appear as significant parts are completed. There may be many revisions and you should expect some bugs. My primary reason for sharing this work is to try and introduce some new ways of doing things.<\/p>\n
No doubt, if you inspect my code, you will come across many code snippets and techniques you have seen before. While I respect proprietary code, I readily make use of code I find in the public domain. I herewith say “Thank You” to all those who answer questions and share code on the public forums; without their generosity I might not have taken on this project.<\/p>\n
This is an advanced project and, when all is working as planned, the program could contain several thousand lines of code. It may take several months for the project to reach functionality. Since it would take too much time to explain everything in detail, focus will be on explaining ideas and on showing you how to use the functions developed. At this time code is written for single stock and single system operation.<\/p>\n
Designing a Real-Time Trading Dashboard (TDash) may seem simple at first glance but once you start you’ll discover there are many problems to solve. There are so many different ways to go about it that just deciding on the best way often takes a significant amount of time. In fact it often takes more time to decide on how to do things than to write the code.<\/p>\n
I tried to consult other traders on what are desirable features, however, almost everyone wants things done differently. To save time I decided to just do it my way. Most features can easily be adjusted and you are encouraged to use ideas and code you like, and develop your own TDash. <\/p>\n
Some may tell you that the TWS offers everything they need and, for some traders, this may be so. Please explore the advanced features of the TWS before rejecting it, it does have a lot of hidden features.<\/p>\n
The TDash system will have one program for the TDash window, one for the Main Chart window, and one or more include files. When you look into the include files, you may see functions which are not called at this time. Some of these unused function are still in their development stage. Unless you use #Pragma NoCache, the length of the include files will not significantly affect your program’s execution time.<\/p>\n
Work will be divided into two major parts: The graphical interface (gfx) and order processing for Bar-Replay, and the IBc. <\/p>\n
My personal design objectives are:<\/p>\n
The Layout below shows four windows, but you can use as many as you like. The only requirement is that the TDash is to your right of the main chart and that these two windows are accurately aligned at the top of the AmiBroker window.<\/p>\n