processing the real time data of NYSE
1)Calculate the simple moving average closing price of the four stocks in a 5-minute sliding window for the last 10 minutes.
2)Find the stock out of the four stocks giving maximum profit (average closing price - average opening price) in a 5-minute sliding window for the last 10 minutes
3)Find out the Relative Strength Index or RSI of the four stocks in a 5-minute sliding window for the last 10 minutes. RSI is considered overbought when above 70 and oversold when below 30.
4)Calculate the trading volume of the four stocks every 10 minutes and decide which stock to purchase out of the four stocks.