|
我在 data plugin 的說明中有看到這一段
---------------------------------------------------------------------
In the second case (remote sources) quotes have to be retrieved in asynchronous way. When GetQuotesEx() function is called for the first time, request for new data has to be send to the data source. As data from remote source arrive usually after a few seconds (or more) we can not block calling application (AmiBroker). Instead control should be returned to AmiBroker. Depending on architecture of your data source you should either setup a window or another thread that will wait for the message sent back by the data source when data is ready. When such message is received the plugin should send WM_USER_STREAMING_UPDATE message that will nofity AmiBroker that it should ask for quotes. In the response to this message AmiBroker will call GetQuotesEx() function again. This time you should fill Quotation array with the data you received from remote source. To avoid repeated requests for historical intraday data, once it is retrieved, real-time plugins begin to collect streaming time/sales data and build-up intraday bars. Each successive GetQuotesEx() call receives bars that were build-up inside plugin from streaming upates. This mode of operation is used by eSignal and myTrack real-time plugins.
---------------------------------------------------
請問要如何 send message to AmiBroker
|
|