Question: 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
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: Load the historical data from the file orc Csv into a list of dictionaries.
Task: Calculate two technical indicators:
i Simple Moving Averages for a day window
i Relative Strength Index RSI for a day window
Task: Write each indicator to a file: Moving Averages to the file orcl sma. CSV and RSI to the file orclrsi.csv
RSI Definition:
RSI Average Gain During Up Periods Average Loss During Down Periods
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
