Question: 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,
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:
Figure : example of a graphical candlestick plot. Each box represents the trading activity in a time period. The top and bottom of a box the candle represent the opening and closing value of a product. The top and bottom of the lines the candlesticks represent the highest and lowest value seen in that time frame. The red box on May rd indicates the value was lower at close than open, so value went down. You do not need to make a graphical plot you will be making a text based plot.
In the first task, you need to compute candlestick data from the exchange data for a particular product. 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
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.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
