Question: 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 yahoo-finance (for JavaScript), pull the
historical data of SOXL and SOXS between 01/01/2021 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 key-value 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) Cross-over, 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 $100,000. Generate a log file in CSV format that records all the trades, including transaction date, symbol, bought/sold, price, transaction amount, $gain/loss, and current balance. The last row of the file should show a summary including the total $gain/loss 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
 PYTHON:Create CRC cards that capture all the features of your trading

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!