Keyboard Shortcuts
ctrl + shift + ? :
Show all keyboard shortcuts
ctrl + g :
Navigate to a group
ctrl + shift + f :
Find
ctrl + / :
Quick actions
esc to dismiss
Likes
Search
twsapi: New File: VB Qcharts sample project. Includes login, and sample chart.
Christian Czirnich
Scott,
toggle quoted message
Show quoted text
thank's for your example, which will be of great help. I had some problems to connect to Quote.com until i updated the ContinuumX.ocx file to a more recent one. I have the file attached for everyone to try, if the older one does not work. Replace Scott's version with this one and the project should work. Best regards, croc * REPLY SEPARATOR * On 07/10/2002 at 21:03 marinindextrader wrote:
Qcharts users wishing to integrate Qcharts data into their IB TWS application, their is a new file in the files section. The project is module oriented to afford portability. Much of the module work could be accomplished in the direct Qcharts calls, but I set it up to keep your main form clear of superfluous code. All the work is pushed out to the module. If you are not a Qcharts user, this Zip will be of no interest. Title Name: QchartsExample.Zip Link: Zip Pack Includes: Entire sample project, Exe file, and extensive but dated documentation, and the Qcharts OCX. Let me know if you have OCX issues. The OCX normally ports with Qcharts and QLink, and gets deposited either in the Qcharts directory, or the Program Files/Common Files/Qcharts directory. If you have issues check these locations first. Downloading QLink and installing it usually registers the OCX properley. Remember, it isn't enough to have the OCX, it needs to be registered with the system registry in order for the IDE to see it in the components directory. The project should port with the OCX on form, but I have included a copy of the OCX for those having issues AND savy enough to do a manual registration. Again, an install of QLink should set things in order in terms of OCX. Let me know if you have issues; I would be interested in feed back. Scott Owner To unsubscribe from this group, send an email to: twsapi-unsubscribe@... Your use of Yahoo! Groups is subject to |
marinindextrader
Kewl Croc...
I had fun making it...and there is much to learn regarding the Qcharts API and its data thread events...I hope if nothing else it sparks some interest and enthusiasim about integrating secondary data sources into the TWS API...after all...IB is a broker...not a data vendor... If one is to develope a fully fleshed application, it would seem to me that an ancillary data feed is requisite... Just another rabbit hole to explore....much to learn their is Scott --- In twsapi@y..., "Christian Czirnich" <crocodile_1964@g...> wrote: Scott,ContinuumX.ocx file to a more recent one. I have the file attached for everyone to try, if the older one does not work. Replace Scott's version with this one and the project should work. Best regards,is module oriented to afford portability. Much of the module workcould be accomplished in the direct Qcharts calls, but I set it up tokeep your main form clear of superfluous code. All the work is pushedout to the module.but dated documentation, and the Qcharts OCX.isn't enough to have the OCX, it needs to be registered with the systemdirectory. OCX.
|
marinindextrader
Here is the key event sequence in the chart code:
Private Sub TRecordSet1_DataChange(ByVal nType As Long, ByVal nParam1 As Long, ByVal nParam2 As Long) Picture1.Refresh End Sub 'Refresh invokes _Paint Private Sub Picture1_Paint() Call PicTradeReDraw End Sub This code fires on a sales event(irrespective wether price AND size change). _DataChange calls Picture1.Refresh, and the _Paint event fires. The Paint event precipitates out of the .Refresh call. Assuming a viable symbol and interval were entered, and in essence ahead of this, an interval specific serverbased recordset is opened..and the live up front interval is appended dynamically and tracked on the client side. In essence, the chart is painted from the semi-static, near term, server sided recordset as returned in FieldArray. You have to deal with the upfront interval dynamically. The FieldArray dimension is controlled in this line of code: If .TRecordSet1.Init(100, 0) > 1 Then .Picture1.Refresh In this case we have a 100 item RecordSet..... ..... I am just scraping the surface....but the dynamics seem pretty straight forward ... Scott --- In twsapi@y..., "Christian Czirnich" <crocodile_1964@g...> wrote: Scott,ContinuumX.ocx file to a more recent one. I have the file attached for everyone to try, if the older one does not work. Replace Scott's version with this one and the project should work. Best regards,is module oriented to afford portability. Much of the module workcould be accomplished in the direct Qcharts calls, but I set it up tokeep your main form clear of superfluous code. All the work is pushedout to the module.but dated documentation, and the Qcharts OCX.isn't enough to have the OCX, it needs to be registered with the systemdirectory. OCX.
|
to navigate to use esc to dismiss