Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

4 t h Homework Assignment Consider a scenario where you are tasked with developing an algorithmic trading strategy in Python. The historical price data for

4th Homework Assignment
Consider a scenario where you are tasked with developing an algorithmic trading strategy in Python. The historical price data for a given financial instrument is provided in a CSV file named "orcl.csv." The file contains columns for "Date," "Open," "High," "Low," "Close," and Volume.".
Task-1: Load the historical data from the file orc1. Csv into a list of dictionaries.
Task-2: Calculate two technical indicators:
i) Simple Moving Averages for a 5-day window
i) Relative Strength Index (RSI) for a 14-day window
Task-3: Write each indicator to a file: Moving Averages to the file orcl - sma. CSV and RSI to the file orcl-rsi.csv.
RSI Definition:
RSI (Average Gain During Up Periods 4 Average Loss During Down Periods
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Mobile Communications

Authors: Jochen Schiller

2nd edition

978-0321123817, 321123816, 978-8131724262

More Books

Students also viewed these Programming questions

Question

9. What are the leading causes of capital flight?

Answered: 1 week ago