这是一篇关于面向对象编程中期分配的编程代写,这个作业的目标是为交换平台开发一个命令行技术分析工具包,以下是作业内容:
Introduction
The goal for this assignment is to develop a command-line technical analysis toolkit for the exchange platform.
TASK 1: Compute candlestick data
Candlesticks are a common visualisation used to show the trends in a trading system. The candlesticks show what happens in a series of time windows, in terms of the starting price, the end price and the highest and lowest prices seen. The following image shows a graphical plot of candlestick data:
In the first task, you need to compute candlestick data from the exchange data for a particular product. Here is an example of the fields needed for candlestick data:
Date Open High Low Close
2023-05-01 100 120 80 110
2023-05-02 110 130 100 120
2023-05-03 90 100 70 80
2023-05-04 95 110 70 100
2023-05-05 80 120 75 115
Note that you will need to do this separately for asks and bids, and separately for different products.
So the table above might be the candlestick data for ‘asks on ETH/UDST’, for example.
Here is how you can compute each field:
Open = the average price per unit in the previous time frame. So say we want to compute the value for ETH/USDT asks from the list of items from the order book, which are all asks for ETH/USDT:
Amount Price Value (price X amount)
10 1 10
10 5 2
10TOTAL 15 3 20
You can see that the mean price is 6.67.
Close: the average price per unit in this time frame (same as Open, but for the current time frame)
High: highest price seen this time frame
Low: lowest price seen this time frame
You should implement the candlestick data computation using a function which returns the following data type:
std::vector<Candlestick>
Note that it returns a vector of Candlestick objects. You will need to define your own Candlestick class that is suitable for representing candlestick data. One Candlestick object represents one candlestick.
TASK 2: Create a text-based plot of the candlestick data
You can see that the mean price is 6.67.
Close: the average price per unit in this time frame (same as Open, but for the current time frame)
High: highest price seen this time frame
Low: lowest price seen this time frame
You should implement the candlestick data computation using a function which returns the following data type:
std::vector<Candlestick>
Note that it returns a vector of Candlestick objects. You will need to define your own Candlestick class that is suitable for representing candlestick data. One Candlestick object represents one candlestick.
TASK 2: Create a text-based plot of the candlestick data
程序辅导定制C/C++/JAVA/安卓/PYTHON/留学生/PHP/APP开发/MATLAB

本网站支持 Alipay WeChatPay PayPal等支付方式
E-mail: vipdue@outlook.com 微信号:vipnxx
如果您使用手机请先保存二维码,微信识别。如果用电脑,直接掏出手机果断扫描。
