Upgrade from Eikon -> Workspace. Learn about programming differences.

For a deeper look into our Eikon Data API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
1 0 1 0

Is it possible to pull Exponential Moving Average data using the RD Library?

I am looking to get EMA intraday data for Tesla, but I am unable to find the correct data item. Please see screenshot.

1701721607861.png

Thanks in advance.

workspace-data-api#content
1701721607861.png (54.2 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Hi,

Please be informed that a reply has been verified as correct in answering the question, and marked as such.

Thank you,

AHS

1 Answer

· Write an Answer
Upvote
Accepted
1.4k 5 3 6

Hi @Chris.Iemma,

The EMA 20 is calculated directly via the CHT app but you can easily do it with pandas:

df = rd.get_data(
          universe = ['TSLA.O'],
          fields = ['TR.PriceCloseDate','TR.PriceClose'],
          parameters={"SDate":"-50" , "EDate":"0"})
df['EMA 20'] = df['Price Close'].ewm(span=20).mean().round(3)
display(df)  

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Thank you for this Marcin!

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.