Answered step by step
Verified Expert Solution
Question
1 Approved Answer
PYTHON:Create CRC cards that capture all the features of your trading system and create a class or module diagram. Install a package such as yfinance
PYTHON:Create CRC cards that capture all the features of your trading system and create a class or module diagram. Install a package such as yfinance for Python or yahoofinance for JavaScript pull the
historical data of SOXL and SOXS between and the last market closing date from Yahoo Finance, and save the data in a JSON file on your local machine. A JSON file is structured by keyvalue pairs. The data should include at least the market date, open price, high price, low price, closing price, and volume.
Create a user interface that allows the user to enter a symbol SOXL or SOXS and a date range and display a historical graph. You must use the local data saved in a JSON file to show the graph.
Implement the trading strategy, Simple Moving Average SMA Crossover, and evaluate the performance of the strategy backtesting by calculating $gain or $loss for each trade, the total $ gain or Sloss for all trades, return as of today compared to the initial balance. Assume the initial balance is $ Generate a log file in CSV format that records all the trades, including transaction date, symbol, boughtsold price, transaction amount, $gainloss and current balance. The last row of the file should show a summary including the total $gainloss for all trades, return as of today, and current balance.
Create at least two test cases: one unit test case and one integration test case. need help with test cases
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