DTC Protocol Discussion Forum
- DTC Protocol Discussion Forum |
- Search Board |
- Control Panel |
- View My Posts / Threads |
- Direct Messages
Date/Time: Fri, 29 Nov 2024 12:29:53 +0000
DTS::s_HistoricalPriceDataRecordResponse for special case question
View Count: 2879
[2020-10-30 00:35:39] |
norvik_ - Posts: 106 |
Hi, DTC team. According to Intraday Data File Format we have an ability to keep bid, ask, and last for each trade prices and use it as base data at sierra ASCIL studies. It is OK in case when sierra created a *scid file itself. Is there any kind of method to transfer such type of historical tick data to sc using custom DTC server? DTS::s_HistoricalPriceDataTickRecordResponse structure contains only one 4-bytes field for last price.. For example, after receiving HISTORICAL_PRICE_DATA_REQUEST,with RecordInterval member equal to INTERVAL_TICK constant, server can send back to client s_HistoricalPriceDataRecordResponse for each tick, with unbundled_indicator,ask price,bid price,last price written to OpenPrice,HighPrice,LowPrice,LastPrice members of s_HistoricalPriceDataRecordResponse structure. NumTrades will be set to 1 at this case. Can you add such option to built-in SC DTC client? Maybe Flag_1 in s_HistoricalPriceDataRequest can be used?? Also, would you be so kind to explain, if I'd like to write tick data directly to *scid, in case of sequence of unbundled trades, to which constant should be equal OpenPrice of records BETWEEN FIRST_SUB_TRADE_OF_UNBUNDLED_TRADE and LAST_SUB_TRADE_OF_UNBUNDLED_TRADE? If not set, it will be == 0.0F...(SINGLE_TRADE_WITH_BID_ASK, created by s_IntradayRecord()// Constructor) Thanks |
[2020-11-05 05:35:32] |
DTC Engineering - Posts: 320 |
server can send This is how the DTC Server in Sierra Chart currently sends back single tick records.back to client s_HistoricalPriceDataRecordResponse for each tick, with unbundled_indicator,ask price,bid price,last price written to OpenPrice,HighPrice,LowPrice,LastPrice members of s_HistoricalPriceDataRecordResponse structure. NumTrades will be set to 1 at this case. Can you add such option to built-in SC DTC client? Maybe Flag_1 in s_HistoricalPriceDataRequest can be used?? Data and Trading Communications (DTC) Protocol Server: Historical Price Data Server Also, would you be so kind to explain, if I'd like to write tick data directly to *scid, in case of sequence of unbundled trades, to which constant should be equal OpenPrice of records BETWEEN FIRST_SUB_TRADE_OF_UNBUNDLED_TRADE and LAST_SUB_TRADE_OF_UNBUNDLED_TRADE? If not set, it will be == 0.0F...(SINGLE_TRADE_WITH_BID_ASK, created by s_IntradayRecord()// Constructor) Date Time Of Last Edit: 2020-11-05 05:45:55
|
[2020-11-05 09:54:58] |
norvik_ - Posts: 106 |
Thanks a lot. This is how the DTC Server in Sierra Chart currently sends back single tick records
I think that I have to send back s_HistoricalPriceDataTickRecordResponse messages, if tick data requested by SC. |
To post a message in this thread, you need to log in with your Sierra Chart account: