Answered step by step
Verified Expert Solution
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
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started