Reuters Eikon COM: Time Series Chart - How to base different stock prices to different dates? when f
Hello,
I am using Reuters Eikon and I want to plot Time Series Charts. I want to plot the stock prices of different firms starting in 2017 with the base 0. My problem is that only two firms are starting there. Two other firms are starting in 2018 and 2019 but they also use 2017 as a base in order to compare the development of all stock prices, which means they are starting not form zero but another value. How can I set the dates I want to refer to as a base individually? So that the firms which are starting later also start at 0.
Best Answer
-
Since you posted this question on a forum dedicated to software developers using Refinitiv APIs I assume you're looking for a programmatic solution. Here's an example using Eikon Data APIs.
# get timeseries of price history for IBM & Airbnb
df = ek.get_timeseries(['IBM.N','ABNB.O'],['CLOSE'],
start_date='2020-11-05',end_date='2021-01-08')
# backfill missing price history for Airbnb
df['ABNB.O'].fillna(method='bfill', inplace=True)
# rebase price history
df = df/df.iloc[0] - 1
# display rebasing plot
ax = df.plot() ax.axhline()0
Answers
-
However, if you're asking how to use a chart object (CHT) in Eikon application, when inserting an Indexed Price Performance / Rebasing Analysis in a chart app, one of the Analysis parameters is "Specified Date", which is set separately for each instrument.
Or you may want to consider using Financial Chart app, which does not require specifying rebasing date for each instrument and just starts the plot at zero on the first date available as long as "Normalize dates" option is set to Off.
If you need further help with Eikon apps, please contact Refinitiv Helpdesk using Contact Us capability in your Eikon application. This forum is dedicated to software developers utilizing Refinitiv APIs.
0
Categories
- All Categories
- 6 AHS
- 39 Alpha
- 162 App Studio
- 4 Block Chain
- 5 Bot Platform
- 17 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
- 370 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 中文论坛