One of my friend needs to finish this pgm asap, and she is asking me for help.
im a n00b in pgming, even though i finished CS engineering.
plz help me guys. i promised, her, ill get it done seeking help from online community friends.
this is the question she has forewarded.
Plotting a candlestick chart:
A candlestick chart is a style of bar-chart used primarily to describe price movements of an equity over time. It is a combination of a line-chart and a bar-chart, in that each bar represents the range of price movement over a given time interval. For more information see Candlestick chart - Wikipedia, the free encyclopedia.
Program outline
1. Read a comma separated text file which contains values for plotting the chart.
- Format of text file = repeated records containing open, high, low, close. (sample file attached) (maximum 20 records)
2. Plot the candles for each record.
- Need a maximum of 20 candles, but the program should work for <= 20 records
- The logic for plotting the chart is shown below.
- If (open >= close) for a record, the candle has to be filled with red color else candle should be filled with green color.
- Plot the graph with black background.
- The screen should be divided into 20 vertical slices with equal width. (no need to show the separator line)
- There should be a separation between each candles. See images attached for more information
- No need of x and y axis unit indicators.
http://mail.google.com/mail/?ui=2&ik=e29d39b66a&view=att&th=123cb3109a2d18ab&attid=0.0.2&disp=emb&realattid=0.0.2&zw
im a n00b in pgming, even though i finished CS engineering.

plz help me guys. i promised, her, ill get it done seeking help from online community friends.

this is the question she has forewarded.
Plotting a candlestick chart:
A candlestick chart is a style of bar-chart used primarily to describe price movements of an equity over time. It is a combination of a line-chart and a bar-chart, in that each bar represents the range of price movement over a given time interval. For more information see Candlestick chart - Wikipedia, the free encyclopedia.
Program outline
1. Read a comma separated text file which contains values for plotting the chart.
- Format of text file = repeated records containing open, high, low, close. (sample file attached) (maximum 20 records)
2. Plot the candles for each record.
- Need a maximum of 20 candles, but the program should work for <= 20 records
- The logic for plotting the chart is shown below.
- If (open >= close) for a record, the candle has to be filled with red color else candle should be filled with green color.
- Plot the graph with black background.
- The screen should be divided into 20 vertical slices with equal width. (no need to show the separator line)
- There should be a separation between each candles. See images attached for more information
- No need of x and y axis unit indicators.
http://mail.google.com/mail/?ui=2&ik=e29d39b66a&view=att&th=123cb3109a2d18ab&attid=0.0.2&disp=emb&realattid=0.0.2&zw