how do we calculate the open and closed price knowing that we have more than 15 ticks per millisecon
Best Answer
-
As @Gurpreet. said, Tick History can offer you the intraday dataset.
Otherwise, you have to create a function that calculates the OHLC of each interval.
If you already capture every single ticks to your database, then it is easier to do the calculation from the database.
Every price or quote ticks have their time fields. For example, the quote tick from forex has Quote Time "QUOTIM" field.
name="AUD="
FieldEntry fid="22" name="BID" dataType="Real" value="0.7982"
FieldEntry fid="393" name="PRIMACT_1" dataType="Real" value="0.7982"
FieldEntry fid="25" name="ASK" dataType="Real" value="0.7986"
FieldEntry fid="275" name="SEC_ACT_1" dataType="Real" value="0.7986"
FieldEntry fid="875" name="VALUE_DT1" dataType="Date" value="16 FEB 2018"
FieldEntry fid="1010" name="VALUE_TS1" dataType="Time" value="09:09:00:000:000:000"
FieldEntry fid="5" name="TIMACT" dataType="Time" value="09:09:00:000:000:000"
FieldEntry fid="11" name="NETCHNG_1" dataType="Real" value="0.0039"
FieldEntry fid="17" name="ACTIV_DATE" dataType="Date" value="16 FEB 2018"
FieldEntry fid="32" name="ACVOL_1" dataType="Real" value="49175"
FieldEntry fid="56" name="PCTCHNG" dataType="Real" value="0.49"
FieldEntry fid="114" name="BID_NET_CH" dataType="Real" value="0.0039"
FieldEntry fid="115" name="BID_TICK_1" dataType="Enum" value="2"
FieldEntry fid="134" name="MID_PRICE" dataType="Real" value="0.7984"
FieldEntry fid="135" name="MID_NET_CH" dataType="Real" value="0.0038"
FieldEntry fid="211" name="NUM_BIDS" dataType="Real" value="49175"
FieldEntry fid="270" name="ACT_TP_1" dataType="Enum" value="27"
FieldEntry fid="831" name="CTBTR_1" dataType="Rmtes" value="RBS "
FieldEntry fid="836" name="CTB_LOC1" dataType="Rmtes" value="LON"
FieldEntry fid="841" name="CTB_PAGE1" dataType="Rmtes" value="RBSL"
FieldEntry fid="1025" name="QUOTIM" dataType="Time" value="09:09:00:000:000:000"
. . .You should use the time field when you do the interval cut-off.
0
Answers
-
Could you please elaborate more on the question or the issue you are trying to resolve?
Usually, you don't have to calculate the open and closed price as there are Opening Price (OPEN_PRC) field and Historic Close (HST_CLOSE) field.
0 -
That is fine. what about the high and low values. What is the time frame which we are receiving these values
0 -
There are TODAY'S HIGH (HIGH_1) and TODAY'S LOW (LOW_1) fields.
HIGH_1 and LOW_1 will update in real-time when there are new high or new low trades during trading hours.
0 -
Thanks but we need to calculate the OHLC price for 1 minute time frame, 5 minute time frame etc. How can we do that from the data we receive?
0 -
Are you trying to create an Intraday Minute Charts? Which means you want OHLC of each minute interval, not the OHLC of the day, right?
0 -
Yes we are: m1, m5, m15, H1, H4, H8, H12, D1, W1, M1, Y1
We will do it at database level, but thing is that we also have the historic price service and our calculations need to match exactly you historic periods.
0 -
@liyarthomas Thomson Reuters Tick History will readily offer a data set like that. It has a REST interface to access that data. It is however a separate service from the Elektron real time.
0
Categories
- All Categories
- 6 AHS
- 39 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 60 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛