Answered step by step
Verified Expert Solution
Link Copied!

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 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
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

Step: 3

blur-text-image

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

More Books

Students also viewed these Databases questions

Question

5. What are the other economic side effects of accidents?

Answered: 1 week ago