PERFORMANCE OF A NEURAL NETWORK BASED TRADING ALGORITHM IN EXTREME EVENTS

Size: px
Start display at page:

Download "PERFORMANCE OF A NEURAL NETWORK BASED TRADING ALGORITHM IN EXTREME EVENTS"

Transcription

1 ECONOPHYSICS PERFORMANCE OF A NEURAL NETWORK BASED TRADING ALGORITHM IN EXTREME EVENTS Francesco Lomio Università degli Studi di Torino July 5, 2017

2 Contents 1 Introduction Literature Review The Context Neural Networks Artificial Neural Networks Methods The Neural Network The FeedForward Backpropagation Prediction Data Manipulation Simulation Results Forecast Simulation Investment Strategy without Threshold Investment Strategy with Threshold Conclusion 25 References Appendix

3 Chapter 1 Introduction The use of algorithms in the financial markets has grown exponentially in the past years. These algorithms have become more and more complex over time, thanks to a more powerful technology and the need to keep pace with the faster trading environment. Most of the algorithms are used in order to take investment decisions based on the estimated future price of the asset. Amongst these, we can find the trend following, pair trading and High Frequency Trading algorithms, just to cite some. The most recent use another "innovative" mathematical tool: the neural networks. These are networks that model the functioning of the neurons in human brain and, if correctly implemented, after learning from past data, can be used to forecast future prices. The aim of my work is to verify is algorithm based on predictive neural network can be used, and are profitable, in period of high uncertainty, specifically during the period following the UKs EU membership referendum held on 23 June LITERATURE REVIEW With the neural networks becoming more and more common for constructing trading algorithms, a range of academic articles have been published on the subject. Unfortunately, even though its a fast-growing topic, most of the research is based on analysing how diverse types of neural network perform when forecasting financial time series. Following are some of the articles that I found useful on my research. Levendovszky and Kia [1], in their paper on Prediction Based High Frequency Trading on Financial Time Series, showed that through the use of a simple Feed-forward Neural Network, can be created an algorithm capable of forecasting financial time series and taking investment decision based on the forecasted data. Other research did the same, sometimes being able 2

4 to build algorithm with an accuracy of over 60%. Arévalo, Niño and Hermández [2], in their work on High-Frequency Trading Strategy Based on Deep Neural Network, showed that it is possible, through the use of a more complex deep neural network, build a trading algorithm which is capable of yielding 81% successful trades, with an accuracy of 66%. Due the multiplicity of neural networks available at the moment, some work has been done also in order to analyse the performances of diverse types of neural network. Guresen, Kayakutlu and Daim [3], in their paper Using Artificial Neural Network Models in Stock Market Index Prediction, compared dynamic artificial neural networks, multi-layer perceptron and hybrid networks in order to evaluate their performances in predicting stock market indices. One thing that I noticed that was missing in this work was an analysis of the performance of a neural network based trading algorithm in periods of high market uncertainty, hence the subject of my thesis. 1.2 THE CONTEXT My analysis, as said before, will be carried during a particular moment in time, the Brexit, a moment in which the markets turmoiled and experienced unexpected (and unpredicted) movements, which led the main indices as well as the currency pairs to jump minutes after the result of the referendum were announced. In particular, the GBP went down more than 10% against the USD at $1.33, a 31-year record low, as soon as the polling stations closed [4]. Figure 1.1: The USD gained 10% in the moments after the announcement of the referendum results. 3

5 1.3 NEURAL NETWORKS As said before, one of the tools used to build price forecasting trading algorithms are the Neural Networks. In the lasts years, these have become vastly used in different disciplines as an analysis and predictive tools. During my work, to build the predictive algorithm, I will use a Feed-forward neural network. Therefore, I find it useful to give a brief history and to introduce the basic and most important features of neural networks Artificial Neural Networks Neural networks models are frequently referred as Artificial Neural Networks (ANN). The models are mathematically described by a function or a distribution. In a network there are nodes, which are the biological respective are neurons, and the ANN is the function that describes the connections between the nodes. The synapses are described with the weight assigned to the connections. Lets consider the Feed Forward neural network, which is the one I used for my model. In this network, the information moves in only one direction, forward, from the input nodes, through the hidden nodes (if any) and to the output nodes. The simplest kind of neural network is a single-layer perceptron network, which consists of a single layer of output nodes; the inputs are fed directly to the outputs via a series of weights. In this way, it can be considered the simplest kind of feed-forward network. The sum of the products of the weights and the inputs is calculated in each node, and if the value is above some threshold (typically 0) the neuron fires and takes the activated value (typically 1); otherwise it takes the deactivated value (typically -1). Neurons with this kind of activation function are also called artificial neurons or linear threshold units. Figure 1.2: A visual example of Feed-forward Neural Network 4

6 A perceptron can be created using any values for the activated and deactivated states as long as the threshold value lies between the two. Most of the perceptrons have as outputs either 1 or -1 with a threshold of 0. A multi-layer neural network can compute a continuous output instead of a step function. A common choice is the so-called logistic function: f (x) = e x (1.1) The logistic function is also known as the sigmoid function. It has a continuous derivative, which allows it to be used in back-propagation. This function is also preferred because its derivative is easily calculated: f (x) = f (x)(1 f (x)) (1.2) Figure 1.3: Sigmoid Function By using the back-propagation, the output of the network is compared with the true value and an error is calculated. This error is then inserted in the network again in order to be used for adjusting the weights between the different layers, with the consequence of reducing the error at each step. After some steps (usually a large number of cycles), the error becomes constant and small enough, and therefore the network can be defined trained, meaning that it has learned a target function. One of the methods used to adjust the weights is the gradient descent optimisation. This consists on the network calculating the derivative of the function defining the error with respect to the weights themselves, and then it changes the weights in order to minimise the error. Mathematically we are trying to reach the minimum of the error function. 5

7 Chapter 2 Methods For my analysis, I chose as dataset the 10-minute price data of the currency pair USD/GBP in the year In this way, first of all I ensured to have enough data to properly train my neural network, and also, I could actually run my model on different time period in order to look for any difference in the behaviour of the model compared to when it tries to predict the price during the UK s EU membership referendum. The choice of the specific currency was driven by two major factors. First of all, the USD/GBP is one of the most traded and most liquid currency pair in the market. The second choice would have been the EUR/GBP pair, but I decided to not go on with this because of its less extreme reaction on the day following the vote. In fact, as said before, the GBP went down more than 10% against the USD Figure 10: USD/GBP exchange rate before and after the referendum, while only of 7% against the EUR. I found it more useful to test the algorithm against a 10% sudden price change than a 7% one. All the data used to run my model were downloaded from the Bloomberg Terminal present at the ESCP Europe Paris Campus. The model I used can be divided in 3 parts: the neural network[5], the dataset manipulation, the simulation. In the following sections we will see how each part is made and what specifically does. 2.1 THE NEURAL NETWORK The first step in building the neural network was to define the parameters characterising it, as shown in the script below: class MLP_NeuralNetwork( object ) : 6

8 def init ( self, input, hidden, output, iterations, learning_rate, momentum, rate_decay ) : " " " : param input : number of input neurons : param hidden : number of hidden neurons : param output : number of output neurons " " " # i n i t i a l i z e parameters s e l f. i t e r a t i o n s = i t e r a t i o n s s e l f. learning_rate = learning_rate s e l f.momentum = momentum s e l f. rate_decay = rate_decay As we can see, the neural network is described by different parameters which are later initialised. Let s see more in details: input layer: number of nodes in the input layer, which is set equal to the number of data it uses to predict the following; hidden layer: number of nodes in the hidden layer, which is arbitrary, usually between the number of input and output nodes, but in general given by trial and error; output layer: number of nodes in the output layer, which is given by the number of data I want to predict; iteration: it gives the number of times the neural network iterates the same calculation in order to better adjust the weights to minimise the error; learning rate: it indicates how fast the neural network is capable of updating itself during the various iterations; momentum: it s a term between 0 and 1 which indicates the dimension of the step that the neural network takes iterating to adjust its weights; rate decay: it s a term which helps avoiding overtraing the network by slightly reducing the learning rate over time The FeedForward This part of the algorithm, once taken the input, feed it forward throughout the neural network in order to loop it in all the nodes in the hidden layer. This is done in the following way: the outputs of the input layer multiplied by their weight are summed up and fed in the sigmoid activation function. 7

9 def feedforward ( self, inputs ) : " " " The feedforward algorithm loops over al l the nodes in the hidden layer and adds together al l the outputs from the input layer * their weights the output of each node i s the sigmoid function of the sum of al l inputs which i s then passed on to the next layer. " " " i f len ( inputs )!= s e l f. input 1: raise ValueError ( Wrong number of inputs ) # input activations for i in range ( s e l f. input 1) : # 1 i s to avoid the bias s e l f. ai [ i ] = inputs [ i ] # hidden activations for j in range ( s e l f. hidden ) : sum = 0.0 for i in range ( s e l f. input ) : sum += s e l f. ai [ i ] * s e l f. wi [ i ] [ j ] s e l f. ah [ j ] = tanh (sum) # output activations for k in range ( s e l f. output ) : sum = 0.0 for j in range ( s e l f. hidden ) : sum += s e l f. ah [ j ] * s e l f.wo[ j ] [ k ] s e l f. ao [ k ] = sigmoid (sum) return s e l f. ao [ : ] As we can see from the code, it simply initialise the input layer with the our input data, it than passes the information through the hidden layer. Here, the outputs of the input layer multiplied by their weight are summed up. This is then passed through the output in order to have an array of ouput data Backpropagation In order for the Neural Network to learn, it needs to iterate multiple times and, each time, it needs to update the weights in order to minimise the error on the output. In the back-propagation part of the code, the algorithm calculates the difference between the output obtained and the real output we are expecting, and propagates back this error in order to update the weights. This is done using the first derivative of the sigmoid function (formula 1.2) def backpropagate ( self, targets ) : i f len ( targets )!= s e l f. output : raise ValueError ( Wrong number of targets ) 8

10 # calculate error terms for output # the delta t e l l you which direction to change the weights output_deltas = [ 0. 0 ] * s e l f. output for k in range ( s e l f. output ) : error = ( targets [ k ] s e l f. ao [ k ] ) output_deltas [ k ] = dsigmoid ( s e l f. ao [ k ] ) * error # calculate error terms for hidden # delta t e l l s you which direction to change the weights hidden_deltas = [ 0. 0 ] * s e l f. hidden for j in range ( s e l f. hidden ) : error = 0.0 for k in range ( s e l f. output ) : error += output_deltas [ k ] * s e l f.wo[ j ] [ k ] hidden_deltas [ j ] = dtanh ( s e l f. ah [ j ] ) * error # update the weights connecting hidden to output for j in range ( s e l f. hidden ) : for k in range ( s e l f. output ) : change = output_deltas [ k ] * s e l f. ah [ j ] s e l f.wo[ j ] [ k ] = s e l f. learning_rate * change + s e l f. co [ j ] [ k ] * s e l f.momentum s e l f. co [ j ] [ k ] = change # update the weights connecting input to hidden for i in range ( s e l f. input ) : for j in range ( s e l f. hidden ) : change = hidden_deltas [ j ] * s e l f. ai [ i ] s e l f. wi [ i ] [ j ] = s e l f. learning_rate * change + s e l f. ci [ i ] [ j ] * s e l f.momentum s e l f. ci [ i ] [ j ] = change # calculate error error = 0.0 for k in range ( len ( targets ) ) : error += 0.5 * ( targets [ k ] s e l f. ao [ k ] ) ** 2 return error As we can see, it acts on two part of the network: on the output and on the hidden layer. On the output layer: calculates the difference between output value and target value; gets the derivative of the sigmoid function in order to determine how much the weights need to change; updates the weights for every node based on the learning rate and on the sigmoid derivative. For the hidden layer: 9

11 calculates the error multiplying the error found on the output layer with the respective weight; calculates the derivative of the activation function to determine how much weights need to change; changes the weights based on learning rate and derivative Prediction This is the last part of the neural network, but also its operative part of the code: it tells the algorithm which data to consider, how to calculate the error, update it and how to perform the prediction. def test ( self, patterns ) : for p in patterns : #print (p [ 1 ], >, s e l f. feedforward (p [ 0 ] ) ) with open( forecast. csv, a ) as forecast : forecast. write ( str ( s e l f. feedforward (p [ 0 ] ) ) + \n ) forecast. close ( ) #print ( s e l f. feedforward (p [ 0 ] ) ) def train ( self, patterns ) : # N: learning rate for i in range ( s e l f. i t e r a t i o n s ) : error = 0.0 for p in patterns : inputs = p[ 0 ] targets = p[ 1 ] s e l f. feedforward ( inputs ) error += s e l f. backpropagate ( targets ) with open( error. csv, a ) as e r r o r f i l e : e r r o r f i l e. write ( str ( error ) + \n ) e r r o r f i l e. close ( ) i f i % 10 == 0: print ( error %.5f % error ) # learning rate decay s e l f. learning_rate = s e l f. learning_rate * ( s e l f. learning_rate / ( s e l f. learning_rate + ( s e l f. learning_rate * s e l f. rate_decay ) ) ) def predict ( self, X) : predictions = [ ] for p in X : predictions. append( s e l f. feedforward (p) ) return predictions 10

12 2.2 DATA MANIPULATION In order to run the neural network, we first need to define and properly manipulate the dataset to make it usable for our purposes. The software uses a n 1 amount of data to predict the data in the position n. def load_data ( ) : #load the data using pandas, remove the possible duplicates ( checking the Date column), convert the data in the Date column as datetime format "YYYY MM DD hh :mm: ss " raw_data = pd. read_csv (. / Data. csv ) #dataset location clear = raw_data. drop_duplicates ( [ Date ] ) clear. to_csv (. / Data_clean. csv, index = False ) # indicate clean dataset new location data = pd. read_csv (. / Data_clean. csv ) data [ Date ] = pd. to_datetime ( data [ Date ] ) #define the period of i n t e r e s t for the analysis. period = ( :00:00, :50:00 ) mask = ( data [ Date ] >= period [ 0 ] ) & ( data [ Date ] <= period [ 1 ] ) data = data. loc [mask] data = data [ Last Price ] This part of the code, first of all reads the.csv file containing the data. The original file is a two column dataset, the first containing the date and the second column the exchange rate. What it does after this is to check for duplicates in the "Date" column and deletes the data associated with them. Once the dataset has been "clean" from duplicates, it select only the data in the time-frame specified. In order for the code to predict the data n given the n 1 data, it s been necessary to split the column of prices into subsets made of n data, built utilising a rolling window: [x 1,..., x n ],[x 2,..., x n+1 ],... (2.1) Through trial and error, I ve decided to use subsets made of n = 18 data, corresponding to 3 hours of trading activity given that each data point corresponds to 10 minutes. n = 18 new_data =[] for x in range (0, len ( data ) n) : new_data. append( data [ x : x+n ] ) # scale the data so values are between 0 and 1 data = np. array ( new_data ) a = data.min( ) #print (a) 11

13 b = data.max( ) #print (b) data = data a data = data / b # define the t e s t set " y " and the training set " data " y = data [ :, n 1:n] #print ( y ) print ( Y shape : +str ( y. shape ) ) data = data [ :, : 1 7 ] #print ( data ) print ( Data shape : +str ( data. shape ) ) # create a tuple containing the training and t e s t set in the following format [ [ [ x1, x2, x3,..., xn ], [ y1, y2,..., yn ] ],... ] out = [ ] for i in range ( data. shape [ 0 ] ) : Z = l i s t ( ( data [ i, : ]. t o l i s t ( ), y [ i ]. t o l i s t ( ) ) ) out. append(z) #print ( out ) return out The first part of this code does exactly what the formula 2.1 says. After creating the subsets, it needs to scale the data in order to have all the data between 0 and 1. To do so, through the min-max method, the code checks for the minimum and the maximum vale in the whole dataset: it subtracts the minimum from all the data and then divides these by the maximum value. Once this is done, it creates two different sets, called y and data. y contains the data n, while data the previous n-1 data. The last step is to create a tuple of the following format: [x 1,..., x n ] [[x 1,..., x n 1 ],[x n ]] (2.2) Finally, in order to run the algorithm, I used the following few lines of code: X = load_data ( ) s t a r t = timeit. default_timer ( ) #run the NN with the given paramethers NN = MLP_NeuralNetwork(17, 10, 1, iterations = 50, learning_rate = 0. 5, momentum = 0. 5, rate_decay = 0.01) NN. train (X) NN. t e s t (X) stop = timeit. default_timer ( ) print ( Run time : + str ( stop s t a r t ) ) run ( ) 12

14 To better understand the results obtained through this method, I wrote some more line of code just for me to be able to graphically show the real price movements compared to the forecasted: " " " f f i s the array containing the forecasted data, y i s the one containing the real data " " " f f = pd. read_csv ( forecast. csv, header = None) # location of the " forecast. csv " f i l e created when running the NN #print ( f f ) f f [ 0 ] = f f [ 0 ]. astype ( str ). str [1: 1] f f [ 0 ] = f f [ 0 ]. astype ( float64, raise_on_error = False ) f f = np. array ( f f ) k = len ( data ) f f = f f [ len ( f f ) k : len ( f f ) ] " " " I use a and b ( the min and max value found before ) to unscale the data in order to better visualise them " " " f f = f f *b f f = f f +a ffcsv = pd. DataFrame( f f ) f f c s v. to_csv ( forecasted +str ( period [ 0 ] ) + +str ( period [ 1 ] ) + n= +str (n)+. csv ) y = y*b y = y+a ycsv = pd. DataFrame( y ) ycsv. to_csv ( real +str ( period [ 0 ] ) + +str ( period [ 1 ] ) + n= +str (n)+. csv ) #print ( len ( f f ) ) #print ( len ( y ) ) " " " plot for the comparison of the two time s e r i e s " " " plt. plot ( f f, g, label= Forecasted ) plt. plot ( y, r, label= Real ) plt. t i t l e ( Period Considered : + period [ 0 ] + to + period [1]+ t +1h10min (n = +str (n)+ ) ) plt. legend ( ) plt. savefig ( str ( period [ 0 ] ) + +str ( period [ 1 ] ) + n= +str (n)+. png ) plt. show ( ) 2.3 SIMULATION After having obtained the data from the algorithm described above, I was able to analyse it and to run a simple simulation of an investment strategy based on the simulated data, to see if it would be profitable or not. In this strategy, I used the simulated data to decide whether to take a long or a short position. To calculate the profit, I used instead the real price. Therefore, I assigned a 1 every time that the forecasted price at time t+1 was greater than the one at time t, and a -1 in the opposite case. I applied this strategy in two different time periods: the first one was March, and I took this data as a base to understand if the simulation 13

15 worked properly or not. The second time-frame June, period highly influenced by the Brexit. " " " I create a l i s t of 1s and 1s according to the price movement of the forecasted data : i f at t+1 the value i s > than the one at t, I write 1, and vice versa " " " indicator = [ ] for j in range (0, l 1) : i f f f _ t e s t [ j +1] f f _ t e s t [ j ] >0: indicator. append( 1) e l i f f f _ t e s t [ j +1] f f _ t e s t [ j ] <0: indicator. append( 1) indicator. insert (0,1) #print ( len ( indicator ) ) " " " I do the same on the real data set, in order to check the performance of the algorithm (% of times i t got the right movement) " " " indicator_ real = [ ] for j in range (0, l 1) : i f y_test [ j +1] y_test [ j ] >0: indicator_ real. append( 1) e l i f y_test [ j +1] y_test [ j ] <=0: indicator_ real. append( 1) indicator_ real. insert ( 0, 1) This part of the code does exactly what s described above: first of all it creates an array of 1 or -1 according to the forecasted data (1 every time that the forecasted price at time t+1 was greater than the one at time t, and a -1 in the opposite case). It then does the same thing with the real data: this is useful to analyse the accuracy of the neural network in terms of price movements. In fact we can check how many times it forecasted the right price movement compared to the real data. In the following extract of the code, we can see it calculates the % returns of the real data (to calculate the profit) and, important, how it adjusts the 1 and -1 array created before in order to put a 1 every time that the return on the real data is 0. In this case I could simulated an "hold" position. " " " I create a l i s t containing the % difference between two consecutive values in the real data " " " returns = [ ] for j in range (0, l 1) : returns. append ( ( ( y_test [ j +1]) / y_test [ j ] ) 1) returns. insert (0,1) print ( len ( returns ) ) #print ( returns ) 14

16 " " " The newindicator i s an adjustment to the indicator l i s t created before, in order to insert a 1 everytime I find a 0 in the returns l i s t, so that I can ignore i t " " " newindicator = [ ] for i in range (0, len ( indicator ) 1) : # for j in range (0, len ( returns ) 1) : i f returns [ i ] == 0: newindicator. append( 1) e l i f returns [ i ]!= 0: newindicator. append( indicator [ i ] ) Let s now see the actual simulation. I supposed an investment of $1000, and built the array containing the returns for each time period. Once done, I could calculate the total profit for the time period analysed: x = 1000 # i n i t i a l investment " " " I calculate the p r o f i t and therefore the total p r o f i t " " " z = next ( i for i, v in enumerate( returns [ 1 : len ( returns ) ] ) i f v!= 0) #print ( z ) #print ( newindicator [ z +1]) #print ( returns [ z +1]) a = [ i for i in range (0, len ( newindicator ) 1) ] a [ z ] = x* newindicator [ z +1]*( returns [ z +1]) #print (a[ z ] ) for j in range ( z+1, len ( newindicator ) 1) : a [ j ] = ( ( ( a [ j 1]) * newindicator [ j +1]*(1+ returns [ j +1]) ) ) #print (a) profit=np.sum( a ) #print ( z ) #print ( p r o f i t ) for i in range (0, z+1) : a. insert ( i, x ) #print (a [ 0 ] ) #a [ z +1] = a [ z +1] + a [ z ] for i in range ( z+1, len ( a ) ) : a [ i ] = a [ i ] + a [ i 1] #print (a) t o t a l p r o f i t = ( ( x+ p r o f i t ) /x ) 1 t o t _ p r o f i t = Total p r o f i t : { percent :.4%}. format ( percent= t o t a l p r o f i t ) print ( t o t _ p r o f i t ) The last step is to check for the accuracy of the network, by calculating how many times the forecasted price movement, matched the real one: up_down = [ ] for i in range (0, l 1) : 15

17 i f indicator [ i ] == indicator_real [ i ] : up_down. append( 1) e l i f indicator [ i ]!= indicator_real [ i ] : up_down. append( 0) k = up_down. count ( 1) # print (up_down) precision = k/ len ( indicator_real ) price_movement = Price movement prediction accuracy : { percent :.2%}. format ( percent=precision ) print ( price_movement ) 16

18 Chapter 3 Results As said before, to run the algorithm I used the 10-minute exchange rate data for the USD/GBP concerning two different time periods, the one going from 1 January 2016 to the 31 March 2016, and the second going from 1 April 2016 to 30 June In this way, I was able to assure that the neural network had enough data to learn properly during the training period, before using its forecasted results for the analysis of the relevant periods (March and June respectively). The time window used is of 18 data point, corresponding to 3 hours of market price: the data from the first 2h50m have been used to predict the data corresponding to 3 hour. The parameters for the neural network have been set as follow: input layer: 17; hidden layer: 10; output layer: 1; iteration: 50; learning rate: 0.5; momentum: 0.5; NN = MLP_NeuralNetwork(17, 10, 1, iterations = 50, learning_rate = 0. 5, momentum = 0. 5, rate_decay = 0.01) NN. train (X) NN. t e s t (X) stop = timeit. default_timer ( ) print ( Run time : + str ( stop s t a r t ) ) run ( ) rate decay:

19 3.1 FORECAST In the figure 3.1 we can see the comparison between the real data (in red) and the data forecasted by the Neural Network (in green). We can see from both the graphs that the forecasted data follow the same trend shown by the real data, even though they don t overlap, meaning that the prediction didn t manage to give the exact price value, but was good enough to show the amplitude of the price movements. (a) March - n=18, data point 10m later (b) June - n=18, data point 10m later Figure 3.1: In figure (a) and (b) we can see the comparison between the real and the forecasted data for the periods of interest. Following the forecast results, I found it interesting to try to modify the time windows used to analyse the data. For this reason I run the algorithm again to test the forecasting quality for different time windows. Utilising the data of the first 2h50m (n=17), I tried to forecast the data corresponding to n=24, n=30, n=48 and n=78, corresponding respectively to 1h10m, 2h10m, 5h10m and 10h10m later. Following is the graph summing up the results of this further analysis. We can see how the forecast remains of the same quality until we use a time horizon of 3 hours. After that, as we can see from figure (c) and (d), the quality of the forecasting deteriorates. 18

20 (a) Forecast Comparison - March (b) Forecast Comparison - June Figure 3.2: The figure shows the comparison of the forecast at different time horizons. 3.2 SIMULATION After having obtained the data, with the method described in the chapter before, I performed a little simulation to check whether the forecasted data could be used as a good investment indicator. In both cases, I supposed an initial investment of 1000 USD, and then checked the evolution of this investment during the period analysed. The simulation has been performed for all the time horizons analysed, with two different assumption. The first was to simulate a long (short) position every time that the forecasted price at time t +1 was greater (less) than the price at time t. The second was to set a threshold under which not to invest, and therefore invest only when the difference between the price at time t + n and t was greater than said threshold. Of course in the latter, the number of total order is much less than the previous Investment Strategy without Threshold When simulating the investment without any threshold, meaning for each data point, a position is taken (long or short), we can see from figure 3.3 that we indeed get a higher profit when investing in normal market condition, compared to high volatile period like it was June Nevertheless, we can see that we are still making a profit in both the periods, respectively: % in March and % in June. What it is interesting to notice is the accuracy of the investment: it measures how many times the price movement prediction matched the real price movement. We can see that it is 19

21 really low in both cases, respectively 48.02% and 47.29%. This literally means that we would have had higher possibilities of making a profit by basing our decision flipping a coin. (a) March - n=18, data point 10m later (b) June - n=18, data point 10m later Figure 3.3: In figure (a) and (b) we can see the simulated profit for the months of March and June, without limit. When running the investment simulation on data forecasted in different time horizons, we can see how the simulated profit significantly changes according to the time horizon analysed. We can see for the month of March that the higher profit was achieved when the investment decision was based on the forecast of the data 2h10m later. Regarding the month of June, we have an overall better performance of the simulation, except for the 2h10m time horizon. Unfortunately, due to the high volatility experienced during June, it s hard to say which time horizon works better for it, given also that we never reach an accuracy of more than 49%. The same is valid also for the month of March: even though it broke the barrier of the 50% accuracy, it is still hard to confirm which time horizon works better, even though we got a definitely higher profit in the 2h10m time horizon. 20

22 (a) n=24 - Data point 1h10m later (b) n=30 - Data point 2h10m later (c) n=48 - Data point 5h10m later (d) n=78 - Data point 10h10m later Figure 3.4: Investment simulation for the different time horizons - Period of interest: March. (a) n=24 - Data point 1h10m later (b) n=30 - Data point 2h10m later (c) n=48 - Data point 5h10m later (d) n=78 - Data point 10h10m later Figure 3.5: Investment simulation for the different time horizons - Period of interest: June. 21

23 3.2.2 Investment Strategy with Threshold When we utilise a threshold, what s happening is that instead of opening a position for each data point, we wait for the percentage difference between one data point and the previous to be higher than a certain value. To do so I slightly modified the code shown in the previous chapter as follow: p = indicator1 = [ ] beg = f f _ t e s t [ 0 ] for i in range (1, l 2) : kk = ( f f _ t e s t [ i ]/ beg ) 1 #print ( kk ) i f kk >= p or kk<= p : beg = f f _ t e s t [ i ] i f kk >= p : indicator1. append( 1) e l i f kk <= p : indicator1. append( 1) else : indicator1. append( 0) indicator1. insert (0,1) Instead of checking for each data point, the code iterates until it finds a data point at time t + n which percentage difference with the data t is higher than the limit imposed. Once this is found, it gives the array created the value of 1 or -1 (respectively if it is higher or lower than the data at time t), and then it continues comparing the following data points to the one found at t + n. The limit I set for the simulation was 0.3%, simply because it was the first value at which the simulation actually opened some position. We can notice from figure 3.6 how this method affected the results: we get much higher profit for both the time period analysed. Moreover we can notice the "Total Order" count, which it s the measure of how many orders were placed during the simulation. We can see how few they are if compared to before: this may have a very high value if we consider that in the real world each transaction has a cost. 22

24 (a) March - n=18, data point 10m later (b) June - n=18, data point 10m later Figure 3.6: In figure (a) and (b) we can see the simulated profit for the months of March and June, when a limit is imposed. If we look at the effect of this method when considering different time horizons, we can see that for both the period analysed, the profit is much greater than in all the other cases, specially when considering a time horizon of 10h10m. This might be due to the fact that waiting for a "real" investment opportunity, it helps in increasing the profit generated. (a) n=24 - Data point 1h10m later (b) n=30 - Data point 2h10m later (c) n=48 - Data point 5h10m later (d) n=78 - Data point 10h10m later Figure 3.7: Investment simulation for the different time horizons, with the limit - Period of interest: March. 23

25 (a) n=24 - Data point 1h10m later (b) n=30 - Data point 2h10m later (c) n=48 - Data point 5h10m later (d) n=78 - Data point 10h10m later Figure 3.8: Investment simulation for the different time horizons, with the limit - Period of interest: June. 24

26 Chapter 4 Conclusion As we could see from the analysis in the chapter before, while we can still profit from a strategy of this kind, it certainly isnt a good strategy to use when extreme events happen. Moreover, in this specific case, weve seen that the accuracy of the neural network was around 50% in both the time periods analysed. This is the same as tossing a coin and deciding to open a long or short position based on the outcome of our action. Of course, this is not to be generalised, but it s an indicator that both the neural network used for predicting, as well as the investment strategy can still be improved massively. We saw, in fact, that as we slightly changed a parameter, being it the time horizon or the investment strategy, we had huge differences in the outcome. Many more trials can be done, but I guess that the best thing to do for now would be to define which methods works best in a more objective way, so that we could be sure that it would work independently from the time analysed. In the end, I can still say that, even if not in an absolute way, utilising these kind of algorithm in periods of normal market conditions, is much safer than period of high volatility as the Brexit: there it is where it can be observed the higher uncertainty in the method used, ranging from huge losses to huge profit just by changing a parameter. 25

27 References [1] K. Levendovszky, Prediction Based - high frequency trading on financial time series, Electrical Engineering and Computer Science, pp , [2] N. a. H. Arévalo, High-Frequency Trading Strategy Based on Deep Neural Networks, Research Gate, [3] K. a. D. Guresen, Using artificial neural network model in stock market index prediction, Expert System with Application, no. 38, [4] [Online]. Available: boost-by-projected-remain-win-in-eu-referendum. [5] [Online]. Adapted from the one provided on GitHub at the following address: github.com/florianmuellerklein/machine-learning/blob/master/old/backpropagationnn.py 26

28 Appendix DIFFERENT TIME HORIZON FORECASTING March (a) n=24 - Data point 1h10m later (b) n=30 - Data point 2h10m later (c) n=48 - Data point 5h10m later (d) n=78 - Data point 10h10m later Figure 4.1: Comparison between the real and the forecasted data, when trying to predict at different time horizons - Period of interest: March. 27

29 June (a) n=24 - Data point 1h10m later (b) n=30 - Data point 2h10m later (c) n=48 - Data point 5h10m later (d) n=78 - Data point 10h10m later Figure 4.2: Comparison between the real and the forecasted data, when trying to predict at different time horizons - Period of interest: June. 28

The Use of Artificial Neural Network for Forecasting of FTSE Bursa Malaysia KLCI Stock Price Index

The Use of Artificial Neural Network for Forecasting of FTSE Bursa Malaysia KLCI Stock Price Index The Use of Artificial Neural Network for Forecasting of FTSE Bursa Malaysia KLCI Stock Price Index Soleh Ardiansyah 1, Mazlina Abdul Majid 2, JasniMohamad Zain 2 Faculty of Computer System and Software

More information

Predicting stock prices for large-cap technology companies

Predicting stock prices for large-cap technology companies Predicting stock prices for large-cap technology companies 15 th December 2017 Ang Li (al171@stanford.edu) Abstract The goal of the project is to predict price changes in the future for a given stock.

More information

An enhanced artificial neural network for stock price predications

An enhanced artificial neural network for stock price predications An enhanced artificial neural network for stock price predications Jiaxin MA Silin HUANG School of Engineering, The Hong Kong University of Science and Technology, Hong Kong SAR S. H. KWOK HKUST Business

More information

STOCK PRICE PREDICTION: KOHONEN VERSUS BACKPROPAGATION

STOCK PRICE PREDICTION: KOHONEN VERSUS BACKPROPAGATION STOCK PRICE PREDICTION: KOHONEN VERSUS BACKPROPAGATION Alexey Zorin Technical University of Riga Decision Support Systems Group 1 Kalkyu Street, Riga LV-1658, phone: 371-7089530, LATVIA E-mail: alex@rulv

More information

Development and Performance Evaluation of Three Novel Prediction Models for Mutual Fund NAV Prediction

Development and Performance Evaluation of Three Novel Prediction Models for Mutual Fund NAV Prediction Development and Performance Evaluation of Three Novel Prediction Models for Mutual Fund NAV Prediction Ananya Narula *, Chandra Bhanu Jha * and Ganapati Panda ** E-mail: an14@iitbbs.ac.in; cbj10@iitbbs.ac.in;

More information

Design and implementation of artificial neural network system for stock market prediction (A case study of first bank of Nigeria PLC Shares)

Design and implementation of artificial neural network system for stock market prediction (A case study of first bank of Nigeria PLC Shares) International Journal of Advanced Engineering and Technology ISSN: 2456-7655 www.newengineeringjournal.com Volume 1; Issue 1; March 2017; Page No. 46-51 Design and implementation of artificial neural network

More information

COMPARING NEURAL NETWORK AND REGRESSION MODELS IN ASSET PRICING MODEL WITH HETEROGENEOUS BELIEFS

COMPARING NEURAL NETWORK AND REGRESSION MODELS IN ASSET PRICING MODEL WITH HETEROGENEOUS BELIEFS Akademie ved Leske republiky Ustav teorie informace a automatizace Academy of Sciences of the Czech Republic Institute of Information Theory and Automation RESEARCH REPORT JIRI KRTEK COMPARING NEURAL NETWORK

More information

Can Twitter predict the stock market?

Can Twitter predict the stock market? 1 Introduction Can Twitter predict the stock market? Volodymyr Kuleshov December 16, 2011 Last year, in a famous paper, Bollen et al. (2010) made the claim that Twitter mood is correlated with the Dow

More information

STOCK MARKET PREDICTION AND ANALYSIS USING MACHINE LEARNING

STOCK MARKET PREDICTION AND ANALYSIS USING MACHINE LEARNING STOCK MARKET PREDICTION AND ANALYSIS USING MACHINE LEARNING Sumedh Kapse 1, Rajan Kelaskar 2, Manojkumar Sahu 3, Rahul Kamble 4 1 Student, PVPPCOE, Computer engineering, PVPPCOE, Maharashtra, India 2 Student,

More information

Pattern Recognition by Neural Network Ensemble

Pattern Recognition by Neural Network Ensemble IT691 2009 1 Pattern Recognition by Neural Network Ensemble Joseph Cestra, Babu Johnson, Nikolaos Kartalis, Rasul Mehrab, Robb Zucker Pace University Abstract This is an investigation of artificial neural

More information

AN ARTIFICIAL NEURAL NETWORK MODELING APPROACH TO PREDICT CRUDE OIL FUTURE. By Dr. PRASANT SARANGI Director (Research) ICSI-CCGRT, Navi Mumbai

AN ARTIFICIAL NEURAL NETWORK MODELING APPROACH TO PREDICT CRUDE OIL FUTURE. By Dr. PRASANT SARANGI Director (Research) ICSI-CCGRT, Navi Mumbai AN ARTIFICIAL NEURAL NETWORK MODELING APPROACH TO PREDICT CRUDE OIL FUTURE By Dr. PRASANT SARANGI Director (Research) ICSI-CCGRT, Navi Mumbai AN ARTIFICIAL NEURAL NETWORK MODELING APPROACH TO PREDICT CRUDE

More information

Predictive Model Learning of Stochastic Simulations. John Hegstrom, FSA, MAAA

Predictive Model Learning of Stochastic Simulations. John Hegstrom, FSA, MAAA Predictive Model Learning of Stochastic Simulations John Hegstrom, FSA, MAAA Table of Contents Executive Summary... 3 Choice of Predictive Modeling Techniques... 4 Neural Network Basics... 4 Financial

More information

Based on BP Neural Network Stock Prediction

Based on BP Neural Network Stock Prediction Based on BP Neural Network Stock Prediction Xiangwei Liu Foundation Department, PLA University of Foreign Languages Luoyang 471003, China Tel:86-158-2490-9625 E-mail: liuxwletter@163.com Xin Ma Foundation

More information

Predicting Economic Recession using Data Mining Techniques

Predicting Economic Recession using Data Mining Techniques Predicting Economic Recession using Data Mining Techniques Authors Naveed Ahmed Kartheek Atluri Tapan Patwardhan Meghana Viswanath Predicting Economic Recession using Data Mining Techniques Page 1 Abstract

More information

Binary Options Trading Strategies How to Become a Successful Trader?

Binary Options Trading Strategies How to Become a Successful Trader? Binary Options Trading Strategies or How to Become a Successful Trader? Brought to You by: 1. Successful Binary Options Trading Strategy Successful binary options traders approach the market with three

More information

Abstract Making good predictions for stock prices is an important task for the financial industry. The way these predictions are carried out is often

Abstract Making good predictions for stock prices is an important task for the financial industry. The way these predictions are carried out is often Abstract Making good predictions for stock prices is an important task for the financial industry. The way these predictions are carried out is often by using artificial intelligence that can learn from

More information

Two kinds of neural networks, a feed forward multi layer Perceptron (MLP)[1,3] and an Elman recurrent network[5], are used to predict a company's

Two kinds of neural networks, a feed forward multi layer Perceptron (MLP)[1,3] and an Elman recurrent network[5], are used to predict a company's LITERATURE REVIEW 2. LITERATURE REVIEW Detecting trends of stock data is a decision support process. Although the Random Walk Theory claims that price changes are serially independent, traders and certain

More information

Statistical and Machine Learning Approach in Forex Prediction Based on Empirical Data

Statistical and Machine Learning Approach in Forex Prediction Based on Empirical Data Statistical and Machine Learning Approach in Forex Prediction Based on Empirical Data Sitti Wetenriajeng Sidehabi Department of Electrical Engineering Politeknik ATI Makassar Makassar, Indonesia tenri616@gmail.com

More information

Business Strategies in Credit Rating and the Control of Misclassification Costs in Neural Network Predictions

Business Strategies in Credit Rating and the Control of Misclassification Costs in Neural Network Predictions Association for Information Systems AIS Electronic Library (AISeL) AMCIS 2001 Proceedings Americas Conference on Information Systems (AMCIS) December 2001 Business Strategies in Credit Rating and the Control

More information

2. Modeling Uncertainty

2. Modeling Uncertainty 2. Modeling Uncertainty Models for Uncertainty (Random Variables): Big Picture We now move from viewing the data to thinking about models that describe the data. Since the real world is uncertain, our

More information

Option Pricing Using Bayesian Neural Networks

Option Pricing Using Bayesian Neural Networks Option Pricing Using Bayesian Neural Networks Michael Maio Pires, Tshilidzi Marwala School of Electrical and Information Engineering, University of the Witwatersrand, 2050, South Africa m.pires@ee.wits.ac.za,

More information

TIM 50 Fall 2011 Notes on Cash Flows and Rate of Return

TIM 50 Fall 2011 Notes on Cash Flows and Rate of Return TIM 50 Fall 2011 Notes on Cash Flows and Rate of Return Value of Money A cash flow is a series of payments or receipts spaced out in time. The key concept in analyzing cash flows is that receiving a $1

More information

Journal of Internet Banking and Commerce

Journal of Internet Banking and Commerce Journal of Internet Banking and Commerce An open access Internet journal (http://www.icommercecentral.com) Journal of Internet Banking and Commerce, December 2017, vol. 22, no. 3 STOCK PRICE PREDICTION

More information

***SECTION 8.1*** The Binomial Distributions

***SECTION 8.1*** The Binomial Distributions ***SECTION 8.1*** The Binomial Distributions CHAPTER 8 ~ The Binomial and Geometric Distributions In practice, we frequently encounter random phenomenon where there are two outcomes of interest. For example,

More information

Application of Deep Learning to Algorithmic Trading

Application of Deep Learning to Algorithmic Trading Application of Deep Learning to Algorithmic Trading Guanting Chen [guanting] 1, Yatong Chen [yatong] 2, and Takahiro Fushimi [tfushimi] 3 1 Institute of Computational and Mathematical Engineering, Stanford

More information

Deep Learning - Financial Time Series application

Deep Learning - Financial Time Series application Chen Huang Deep Learning - Financial Time Series application Use Deep learning to learn an existing strategy Warning Don t Try this at home! Investment involves risk. Make sure you understand the risk

More information

Spot Forex Trading Guide

Spot Forex Trading Guide Spot Forex Trading Guide How to Trade Spot Forex This guide explains the basics of how to trade spot forex, protect your profits and limit your losses in straightforward, everyday language. Here s what

More information

Understanding neural networks

Understanding neural networks Machine Learning Neural Networks Understanding neural networks An Artificial Neural Network (ANN) models the relationship between a set of input signals and an output signal using a model derived from

More information

Predicting the stock price companies using artificial neural networks (ANN) method (Case Study: National Iranian Copper Industries Company)

Predicting the stock price companies using artificial neural networks (ANN) method (Case Study: National Iranian Copper Industries Company) ORIGINAL ARTICLE Received 2 February. 2016 Accepted 6 March. 2016 Vol. 5, Issue 2, 55-61, 2016 Academic Journal of Accounting and Economic Researches ISSN: 2333-0783 (Online) ISSN: 2375-7493 (Print) ajaer.worldofresearches.com

More information

Buy rules: Sell rules: Strategy #2. Martingale hedging with exponential lot increase... 6

Buy rules: Sell rules: Strategy #2. Martingale hedging with exponential lot increase... 6 Contents Introduction... 2 Data... 2 Short instructions on how to use Forex Tester.... 2 Sum up... 3 STRATEGIES... 3 Martingale strategies... 3 Strategy #1. Martingale Grid & Hedging... 4 Buy rules:...

More information

The Binomial Distribution

The Binomial Distribution The Binomial Distribution January 31, 2019 Contents The Binomial Distribution The Normal Approximation to the Binomial The Binomial Hypothesis Test Computing Binomial Probabilities in R 30 Problems The

More information

Iran s Stock Market Prediction By Neural Networks and GA

Iran s Stock Market Prediction By Neural Networks and GA Iran s Stock Market Prediction By Neural Networks and GA Mahmood Khatibi MS. in Control Engineering mahmood.khatibi@gmail.com Habib Rajabi Mashhadi Associate Professor h_mashhadi@ferdowsi.um.ac.ir Electrical

More information

An Improved Approach for Business & Market Intelligence using Artificial Neural Network

An Improved Approach for Business & Market Intelligence using Artificial Neural Network Available Online at www.ijcsmc.com International Journal of Computer Science and Mobile Computing A Monthly Journal of Computer Science and Information Technology ISSN 2320 088X IMPACT FACTOR: 5.258 IJCSMC,

More information

Math 361. Day 8 Binomial Random Variables pages 27 and 28 Inv Do you have ESP? Inv. 1.3 Tim or Bob?

Math 361. Day 8 Binomial Random Variables pages 27 and 28 Inv Do you have ESP? Inv. 1.3 Tim or Bob? Math 361 Day 8 Binomial Random Variables pages 27 and 28 Inv. 1.2 - Do you have ESP? Inv. 1.3 Tim or Bob? Inv. 1.1: Friend or Foe Review Is a particular study result consistent with the null model? Learning

More information

LITERATURE REVIEW. can mimic the brain. A neural network consists of an interconnected nnected group of

LITERATURE REVIEW. can mimic the brain. A neural network consists of an interconnected nnected group of 10 CHAPTER 2 LITERATURE REVIEW 2.1 Artificial Neural Network Artificial neural network (ANN), usually ly called led Neural Network (NN), is an algorithm that was originally motivated ted by the goal of

More information

Scheme Management System User guide

Scheme Management System User guide Scheme Management System User guide 20-09-2016 1. GETTING STARTED 1.1 - accessing the scheme management system 1.2 converting my Excel file to CSV format 2. ADDING EMPLOYEES TO MY PENSION SCHEME 2.1 Options

More information

Barapatre Omprakash et.al; International Journal of Advance Research, Ideas and Innovations in Technology

Barapatre Omprakash et.al; International Journal of Advance Research, Ideas and Innovations in Technology ISSN: 2454-132X Impact factor: 4.295 (Volume 4, Issue 2) Available online at: www.ijariit.com Stock Price Prediction using Artificial Neural Network Omprakash Barapatre omprakashbarapatre@bitraipur.ac.in

More information

Maximum Contiguous Subsequences

Maximum Contiguous Subsequences Chapter 8 Maximum Contiguous Subsequences In this chapter, we consider a well-know problem and apply the algorithm-design techniques that we have learned thus far to this problem. While applying these

More information

Jacob: The illustrative worksheet shows the values of the simulation parameters in the upper left section (Cells D5:F10). Is this for documentation?

Jacob: The illustrative worksheet shows the values of the simulation parameters in the upper left section (Cells D5:F10). Is this for documentation? PROJECT TEMPLATE: DISCRETE CHANGE IN THE INFLATION RATE (The attached PDF file has better formatting.) {This posting explains how to simulate a discrete change in a parameter and how to use dummy variables

More information

Stock Market Prediction System

Stock Market Prediction System Stock Market Prediction System W.N.N De Silva 1, H.M Samaranayaka 2, T.R Singhara 3, D.C.H Wijewardana 4. Sri Lanka Institute of Information Technology, Malabe, Sri Lanka. { 1 nathashanirmani55, 2 malmisamaranayaka,

More information

The Binomial Distribution

The Binomial Distribution The Binomial Distribution January 31, 2018 Contents The Binomial Distribution The Normal Approximation to the Binomial The Binomial Hypothesis Test Computing Binomial Probabilities in R 30 Problems The

More information

Stock Market Prediction using Artificial Neural Networks IME611 - Financial Engineering Indian Institute of Technology, Kanpur (208016), India

Stock Market Prediction using Artificial Neural Networks IME611 - Financial Engineering Indian Institute of Technology, Kanpur (208016), India Stock Market Prediction using Artificial Neural Networks IME611 - Financial Engineering Indian Institute of Technology, Kanpur (208016), India Name Pallav Ranka (13457) Abstract Investors in stock market

More information

Application of Innovations Feedback Neural Networks in the Prediction of Ups and Downs Value of Stock Market *

Application of Innovations Feedback Neural Networks in the Prediction of Ups and Downs Value of Stock Market * Proceedings of the 6th World Congress on Intelligent Control and Automation, June - 3, 006, Dalian, China Application of Innovations Feedback Neural Networks in the Prediction of Ups and Downs Value of

More information

IB Interview Guide: Case Study Exercises Three-Statement Modeling Case (30 Minutes)

IB Interview Guide: Case Study Exercises Three-Statement Modeling Case (30 Minutes) IB Interview Guide: Case Study Exercises Three-Statement Modeling Case (30 Minutes) Hello, and welcome to our first sample case study. This is a three-statement modeling case study and we're using this

More information

1. Introduction 2. Chart Basics 3. Trend Lines 4. Indicators 5. Putting It All Together

1. Introduction 2. Chart Basics 3. Trend Lines 4. Indicators 5. Putting It All Together Technical Analysis: A Beginners Guide 1. Introduction 2. Chart Basics 3. Trend Lines 4. Indicators 5. Putting It All Together Disclaimer: Neither these presentations, nor anything on Twitter, Cryptoscores.org,

More information

International Journal of Computer Engineering and Applications, Volume XII, Issue II, Feb. 18, ISSN

International Journal of Computer Engineering and Applications, Volume XII, Issue II, Feb. 18,   ISSN Volume XII, Issue II, Feb. 18, www.ijcea.com ISSN 31-3469 AN INVESTIGATION OF FINANCIAL TIME SERIES PREDICTION USING BACK PROPAGATION NEURAL NETWORKS K. Jayanthi, Dr. K. Suresh 1 Department of Computer

More information

Y. Yang, Y. Zheng and T. Hospedales. Updated: 2016/09/21. Queen Mary, University of London

Y. Yang, Y. Zheng and T. Hospedales. Updated: 2016/09/21. Queen Mary, University of London GATED NEURAL NETWORKS FOR OPTION PRICING ENFORCING SANITY IN A BLACK BOX MODEL Y. Yang, Y. Zheng and T. Hospedales Updated: 2016/09/21 Queen Mary, University of London Overview ML for Option Pricing. With

More information

Validating TIP$TER Can You Trust Its Math?

Validating TIP$TER Can You Trust Its Math? Validating TIP$TER Can You Trust Its Math? A Series of Tests Introduction: Validating TIP$TER involves not just checking the accuracy of its complex algorithms, but also ensuring that the third party software

More information

Prediction Using Back Propagation and k- Nearest Neighbor (k-nn) Algorithm

Prediction Using Back Propagation and k- Nearest Neighbor (k-nn) Algorithm Prediction Using Back Propagation and k- Nearest Neighbor (k-nn) Algorithm Tejaswini patil 1, Karishma patil 2, Devyani Sonawane 3, Chandraprakash 4 Student, Dept. of computer, SSBT COET, North Maharashtra

More information

Performance analysis of Neural Network Algorithms on Stock Market Forecasting

Performance analysis of Neural Network Algorithms on Stock Market Forecasting www.ijecs.in International Journal Of Engineering And Computer Science ISSN:2319-7242 Volume 3 Issue 9 September, 2014 Page No. 8347-8351 Performance analysis of Neural Network Algorithms on Stock Market

More information

Stock Trading Following Stock Price Index Movement Classification Using Machine Learning Techniques

Stock Trading Following Stock Price Index Movement Classification Using Machine Learning Techniques Stock Trading Following Stock Price Index Movement Classification Using Machine Learning Techniques 6.1 Introduction Trading in stock market is one of the most popular channels of financial investments.

More information

Term Par Swap Rate Term Par Swap Rate 2Y 2.70% 15Y 4.80% 5Y 3.60% 20Y 4.80% 10Y 4.60% 25Y 4.75%

Term Par Swap Rate Term Par Swap Rate 2Y 2.70% 15Y 4.80% 5Y 3.60% 20Y 4.80% 10Y 4.60% 25Y 4.75% Revisiting The Art and Science of Curve Building FINCAD has added curve building features (enhanced linear forward rates and quadratic forward rates) in Version 9 that further enable you to fine tune the

More information

Forecasting stock market return using ANFIS: the case of Tehran Stock Exchange

Forecasting stock market return using ANFIS: the case of Tehran Stock Exchange Available online at http://www.ijashss.com International Journal of Advanced Studies in Humanities and Social Science Volume 1, Issue 5, 2013: 452-459 Forecasting stock market return using ANFIS: the case

More information

An Intelligent Forex Monitoring System

An Intelligent Forex Monitoring System An Intelligent Forex Monitoring System Ajith Abraham & Morshed U. Chowdhury" School of Computing and Information Technology Monash University (Gippsland Campus), Churchill, Victoria 3842, Australia http://ajith.softcomputing.net,

More information

APPLICATION OF ARTIFICIAL NEURAL NETWORK SUPPORTING THE PROCESS OF PORTFOLIO MANAGEMENT IN TERMS OF TIME INVESTMENT ON THE WARSAW STOCK EXCHANGE

APPLICATION OF ARTIFICIAL NEURAL NETWORK SUPPORTING THE PROCESS OF PORTFOLIO MANAGEMENT IN TERMS OF TIME INVESTMENT ON THE WARSAW STOCK EXCHANGE QUANTITATIVE METHODS IN ECONOMICS Vol. XV, No. 2, 2014, pp. 307 316 APPLICATION OF ARTIFICIAL NEURAL NETWORK SUPPORTING THE PROCESS OF PORTFOLIO MANAGEMENT IN TERMS OF TIME INVESTMENT ON THE WARSAW STOCK

More information

You should already have a worksheet with the Basic Plus Plan details in it as well as another plan you have chosen from ehealthinsurance.com.

You should already have a worksheet with the Basic Plus Plan details in it as well as another plan you have chosen from ehealthinsurance.com. In earlier technology assignments, you identified several details of a health plan and created a table of total cost. In this technology assignment, you ll create a worksheet which calculates the total

More information

Dr. P. O. Asagba Computer Science Department, Faculty of Science, University of Port Harcourt, Port Harcourt, PMB 5323, Choba, Nigeria

Dr. P. O. Asagba Computer Science Department, Faculty of Science, University of Port Harcourt, Port Harcourt, PMB 5323, Choba, Nigeria PREDICTING THE NIGERIAN STOCK MARKET USING ARTIFICIAL NEURAL NETWORK S. Neenwi Computer Science Department, Rivers State Polytechnic, Bori, PMB 20, Rivers State, Nigeria. Dr. P. O. Asagba Computer Science

More information

Backpropagation. Deep Learning Theory and Applications. Kevin Moon Guy Wolf

Backpropagation. Deep Learning Theory and Applications. Kevin Moon Guy Wolf Deep Learning Theory and Applications Backpropagation Kevin Moon (kevin.moon@yale.edu) Guy Wolf (guy.wolf@yale.edu) CPSC/AMTH 663 Calculating the gradients We showed how neural networks can learn weights

More information

Chapter 5. Sampling Distributions

Chapter 5. Sampling Distributions Lecture notes, Lang Wu, UBC 1 Chapter 5. Sampling Distributions 5.1. Introduction In statistical inference, we attempt to estimate an unknown population characteristic, such as the population mean, µ,

More information

Academic Research Review. Algorithmic Trading using Neural Networks

Academic Research Review. Algorithmic Trading using Neural Networks Academic Research Review Algorithmic Trading using Neural Networks EXECUTIVE SUMMARY In this paper, we attempt to use a neural network to predict opening prices of a set of equities which is then fed into

More information

Forecasting stock market prices

Forecasting stock market prices ICT Innovations 2010 Web Proceedings ISSN 1857-7288 107 Forecasting stock market prices Miroslav Janeski, Slobodan Kalajdziski Faculty of Electrical Engineering and Information Technologies, Skopje, Macedonia

More information

Backpropagation and Recurrent Neural Networks in Financial Analysis of Multiple Stock Market Returns

Backpropagation and Recurrent Neural Networks in Financial Analysis of Multiple Stock Market Returns Backpropagation and Recurrent Neural Networks in Financial Analysis of Multiple Stock Market Returns Jovina Roman and Akhtar Jameel Department of Computer Science Xavier University of Louisiana 7325 Palmetto

More information

Neuro-Genetic System for DAX Index Prediction

Neuro-Genetic System for DAX Index Prediction Neuro-Genetic System for DAX Index Prediction Marcin Jaruszewicz and Jacek Mańdziuk Faculty of Mathematics and Information Science, Warsaw University of Technology, Plac Politechniki 1, 00-661 Warsaw,

More information

Forecasting Foreign Exchange Rate during Crisis - A Neural Network Approach

Forecasting Foreign Exchange Rate during Crisis - A Neural Network Approach International Proceedings of Economics Development and Research IPEDR vol.86 (2016) (2016) IACSIT Press, Singapore Forecasting Foreign Exchange Rate during Crisis - A Neural Network Approach K. V. Bhanu

More information

Spike Statistics: A Tutorial

Spike Statistics: A Tutorial Spike Statistics: A Tutorial File: spike statistics4.tex JV Stone, Psychology Department, Sheffield University, England. Email: j.v.stone@sheffield.ac.uk December 10, 2007 1 Introduction Why do we need

More information

PREDICTION OF CLOSING PRICES ON THE STOCK EXCHANGE WITH THE USE OF ARTIFICIAL NEURAL NETWORKS

PREDICTION OF CLOSING PRICES ON THE STOCK EXCHANGE WITH THE USE OF ARTIFICIAL NEURAL NETWORKS Image Processing & Communication, vol. 17, no. 4, pp. 275-282 DOI: 10.2478/v10248-012-0056-5 275 PREDICTION OF CLOSING PRICES ON THE STOCK EXCHANGE WITH THE USE OF ARTIFICIAL NEURAL NETWORKS MICHAŁ PALUCH,

More information

Frequency Distributions

Frequency Distributions Frequency Distributions January 8, 2018 Contents Frequency histograms Relative Frequency Histograms Cumulative Frequency Graph Frequency Histograms in R Using the Cumulative Frequency Graph to Estimate

More information

The exam is closed book, closed calculator, and closed notes except your three crib sheets.

The exam is closed book, closed calculator, and closed notes except your three crib sheets. CS 188 Spring 2016 Introduction to Artificial Intelligence Final V2 You have approximately 2 hours and 50 minutes. The exam is closed book, closed calculator, and closed notes except your three crib sheets.

More information

Dynamic Programming cont. We repeat: The Dynamic Programming Template has three parts.

Dynamic Programming cont. We repeat: The Dynamic Programming Template has three parts. Page 1 Dynamic Programming cont. We repeat: The Dynamic Programming Template has three parts. Subproblems Sometimes this is enough if the algorithm and its complexity is obvious. Recursion Algorithm Must

More information

Spike Statistics. File: spike statistics3.tex JV Stone Psychology Department, Sheffield University, England.

Spike Statistics. File: spike statistics3.tex JV Stone Psychology Department, Sheffield University, England. Spike Statistics File: spike statistics3.tex JV Stone Psychology Department, Sheffield University, England. Email: j.v.stone@sheffield.ac.uk November 27, 2007 1 Introduction Why do we need to know about

More information

Pro Strategies Help Manual / User Guide: Last Updated March 2017

Pro Strategies Help Manual / User Guide: Last Updated March 2017 Pro Strategies Help Manual / User Guide: Last Updated March 2017 The Pro Strategies are an advanced set of indicators that work independently from the Auto Binary Signals trading strategy. It s programmed

More information

Real Estate Private Equity Case Study 3 Opportunistic Pre-Sold Apartment Development: Waterfall Returns Schedule, Part 1: Tier 1 IRRs and Cash Flows

Real Estate Private Equity Case Study 3 Opportunistic Pre-Sold Apartment Development: Waterfall Returns Schedule, Part 1: Tier 1 IRRs and Cash Flows Real Estate Private Equity Case Study 3 Opportunistic Pre-Sold Apartment Development: Waterfall Returns Schedule, Part 1: Tier 1 IRRs and Cash Flows Welcome to the next lesson in this Real Estate Private

More information

International Journal of Computer Engineering and Applications, Volume XII, Issue II, Feb. 18, ISSN

International Journal of Computer Engineering and Applications, Volume XII, Issue II, Feb. 18,   ISSN International Journal of Computer Engineering and Applications, Volume XII, Issue II, Feb. 18, www.ijcea.com ISSN 31-3469 AN INVESTIGATION OF FINANCIAL TIME SERIES PREDICTION USING BACK PROPAGATION NEURAL

More information

Easy News Trader. Profit From Forex New Announcements By Dean Saunders

Easy News Trader. Profit From Forex New Announcements By Dean Saunders Easy News Trader Profit From Forex New Announcements By Dean Saunders The News Trader and every word, sentence, and paragraph contained within are copyrighted under he UK Copyright Service and protected

More information

Decision Trees: Booths

Decision Trees: Booths DECISION ANALYSIS Decision Trees: Booths Terri Donovan recorded: January, 2010 Hi. Tony has given you a challenge of setting up a spreadsheet, so you can really understand whether it s wiser to play in

More information

Follow Price Action Trends By Laurentiu Damir Copyright 2012 Laurentiu Damir

Follow Price Action Trends By Laurentiu Damir Copyright 2012 Laurentiu Damir Follow Price Action Trends By Laurentiu Damir Copyright 2012 Laurentiu Damir All rights reserved. No part of this book may be reproduced or transmitted in any form or by any means, electronic or mechanical,

More information

STOCK MARKET TRENDS PREDICTION USING NEURAL NETWORK BASED HYBRID MODEL

STOCK MARKET TRENDS PREDICTION USING NEURAL NETWORK BASED HYBRID MODEL International Journal of Computer Science Engineering and Information Technology Research (IJCSEITR) ISSN 2249-6831 Vol. 3, Issue 1, Mar 2013, 11-18 TJPRC Pvt. Ltd. STOCK MARKET TRENDS PREDICTION USING

More information

VantagePoint software

VantagePoint software New Products Critical Websites Software Testing Book Review Application Testing VantagePoint software Analyzing new trading opportunities Given the financial market dynamics over the past ten years surrounding

More information

CCFp DASHBOARD USER GUIDE

CCFp DASHBOARD USER GUIDE CCFp DASHBOARD USER GUIDE V 1.12 Page: 1 / 41 Greed is Good 10/06/2017 INDEX 1. Disclaimer... 2 2. Introduction... 3 2.1. HOW TO READ THE DASHBOARD... 3 2.2. EA [01] GENERAL SETTINGS... 6 2.3. EA [02]

More information

Algorithmic Trading using Reinforcement Learning augmented with Hidden Markov Model

Algorithmic Trading using Reinforcement Learning augmented with Hidden Markov Model Algorithmic Trading using Reinforcement Learning augmented with Hidden Markov Model Simerjot Kaur (sk3391) Stanford University Abstract This work presents a novel algorithmic trading system based on reinforcement

More information

Stock Market Index Prediction Using Multilayer Perceptron and Long Short Term Memory Networks: A Case Study on BSE Sensex

Stock Market Index Prediction Using Multilayer Perceptron and Long Short Term Memory Networks: A Case Study on BSE Sensex Stock Market Index Prediction Using Multilayer Perceptron and Long Short Term Memory Networks: A Case Study on BSE Sensex R. Arjun Raj # # Research Scholar, APJ Abdul Kalam Technological University, College

More information

3 Price Action Signals to Compliment ANY Approach to ANY Market

3 Price Action Signals to Compliment ANY Approach to ANY Market 3 Price Action Signals to Compliment ANY Approach to ANY Market Introduction: It is important to start this report by being clear that these signals and tactics for using Price Action are meant to compliment

More information

Stock Market Forecasting Using Artificial Neural Networks

Stock Market Forecasting Using Artificial Neural Networks Stock Market Forecasting Using Artificial Neural Networks Burak Gündoğdu Abstract Many papers on forecasting the stock market have been written by the academia. In addition to that, stock market prediction

More information

COGNITIVE LEARNING OF INTELLIGENCE SYSTEMS USING NEURAL NETWORKS: EVIDENCE FROM THE AUSTRALIAN CAPITAL MARKETS

COGNITIVE LEARNING OF INTELLIGENCE SYSTEMS USING NEURAL NETWORKS: EVIDENCE FROM THE AUSTRALIAN CAPITAL MARKETS Asian Academy of Management Journal, Vol. 7, No. 2, 17 25, July 2002 COGNITIVE LEARNING OF INTELLIGENCE SYSTEMS USING NEURAL NETWORKS: EVIDENCE FROM THE AUSTRALIAN CAPITAL MARKETS Joachim Tan Edward Sek

More information

Bond Market Prediction using an Ensemble of Neural Networks

Bond Market Prediction using an Ensemble of Neural Networks Bond Market Prediction using an Ensemble of Neural Networks Bhagya Parekh Naineel Shah Rushabh Mehta Harshil Shah ABSTRACT The characteristics of a successful financial forecasting system are the exploitation

More information

Keywords: artificial neural network, backpropagtion algorithm, derived parameter.

Keywords: artificial neural network, backpropagtion algorithm, derived parameter. Volume 5, Issue 2, February 2015 ISSN: 2277 128X International Journal of Advanced Research in Computer Science and Software Engineering Research Paper Available online at: www.ijarcsse.com Stock Price

More information

Forex Illusions - 6 Illusions You Need to See Through to Win

Forex Illusions - 6 Illusions You Need to See Through to Win Forex Illusions - 6 Illusions You Need to See Through to Win See the Reality & Forex Trading Success can Be Yours! The myth of Forex trading is one which the public believes and they lose and its a whopping

More information

The Use of Neural Networks in the Prediction of the Stock Exchange of Thailand (SET) Index

The Use of Neural Networks in the Prediction of the Stock Exchange of Thailand (SET) Index Research Online ECU Publications Pre. 2011 2008 The Use of Neural Networks in the Prediction of the Stock Exchange of Thailand (SET) Index Suchira Chaigusin Chaiyaporn Chirathamjaree Judith Clayden 10.1109/CIMCA.2008.83

More information

DATA MINING ON LOAN APPROVED DATSET FOR PREDICTING DEFAULTERS

DATA MINING ON LOAN APPROVED DATSET FOR PREDICTING DEFAULTERS DATA MINING ON LOAN APPROVED DATSET FOR PREDICTING DEFAULTERS By Ashish Pandit A Project Report Submitted in Partial Fulfillment of the Requirements for the Degree of Master of Science in Computer Science

More information

yuimagui: A graphical user interface for the yuima package. User Guide yuimagui v1.0

yuimagui: A graphical user interface for the yuima package. User Guide yuimagui v1.0 yuimagui: A graphical user interface for the yuima package. User Guide yuimagui v1.0 Emanuele Guidotti, Stefano M. Iacus and Lorenzo Mercuri February 21, 2017 Contents 1 yuimagui: Home 3 2 yuimagui: Data

More information

covered warrants uncovered an explanation and the applications of covered warrants

covered warrants uncovered an explanation and the applications of covered warrants covered warrants uncovered an explanation and the applications of covered warrants Disclaimer Whilst all reasonable care has been taken to ensure the accuracy of the information comprising this brochure,

More information

Quantitative Trading System For The E-mini S&P

Quantitative Trading System For The E-mini S&P AURORA PRO Aurora Pro Automated Trading System Aurora Pro v1.11 For TradeStation 9.1 August 2015 Quantitative Trading System For The E-mini S&P By Capital Evolution LLC Aurora Pro is a quantitative trading

More information

MT4 Supreme Edition Trade Terminal

MT4 Supreme Edition Trade Terminal MT4 Supreme Edition Trade Terminal In this manual, you will find installation and usage instructions for MT4 Supreme Edition. Installation process and usage is the same in new MT5 Supreme Edition. Simply

More information

Terminology. Organizer of a race An institution, organization or any other form of association that hosts a racing event and handles its financials.

Terminology. Organizer of a race An institution, organization or any other form of association that hosts a racing event and handles its financials. Summary The first official insurance was signed in the year 1347 in Italy. At that time it didn t bear such meaning, but as time passed, this kind of dealing with risks became very popular, because in

More information

Chapter 4: Commonly Used Distributions. Statistics for Engineers and Scientists Fourth Edition William Navidi

Chapter 4: Commonly Used Distributions. Statistics for Engineers and Scientists Fourth Edition William Navidi Chapter 4: Commonly Used Distributions Statistics for Engineers and Scientists Fourth Edition William Navidi 2014 by Education. This is proprietary material solely for authorized instructor use. Not authorized

More information

Neuro Fuzzy based Stock Market Prediction System

Neuro Fuzzy based Stock Market Prediction System Neuro Fuzzy based Stock Market Prediction System M. Gunasekaran, S. Anitha, S. Kavipriya, Asst Professor, Dept of MCA, III MCA, Dept Of MCA, III MCA, Dept of MCA, Park College of Engg& tech, Park College

More information

HOW TO PROTECT YOURSELF FROM RISKY FOREX SYSTEMS

HOW TO PROTECT YOURSELF FROM RISKY FOREX SYSTEMS BestForexBrokers.com Identifying Flaws in Profitable Forex Systems HOW TO PROTECT YOURSELF FROM RISKY FOREX SYSTEMS JULY 2017 Disclaimer: BestForexBrokers.com and this report are not associated with myfxbook.com

More information

Penny Stock Guide. Copyright 2017 StocksUnder1.org, All Rights Reserved.

Penny Stock Guide.  Copyright 2017 StocksUnder1.org, All Rights Reserved. Penny Stock Guide Disclaimer The information provided is not to be considered as a recommendation to buy certain stocks and is provided solely as an information resource to help traders make their own

More information

Lesson 21: Comparing Linear and Exponential Functions Again

Lesson 21: Comparing Linear and Exponential Functions Again : Comparing Linear and Exponential Functions Again Student Outcomes Students create models and understand the differences between linear and exponential models that are represented in different ways. Lesson

More information