I have 40 inputs, market values from the stock exchange.
The learning goes like this: for the 40 inputs, I calculate 2 numbers.
1) How much money would I earn or lose with a buy order
2) How much money would I earn or lose with a sell order
Because of how stock exchanges work, both numbers can actually be negative/positivie indicating that I can lose/earn money for either buy and sell. If that happens, it is an indication that I should not place an order at all, even if both buy&sell are positive numbers.
Therefore, I imagine using the network to work as this:
- Code: Select all
new ActivationNetwork(new BipolarSigmoidFunction(), 40, 40 * 2, 1)
- BackPropagationLearning teaches the network that for various 40 inputs, the output is either
-1 (sell order is going to earn money, buy is going to lose money)
+1(buy order is going to earn money, sell is going to lose money)
0 (buy and sell are both going to sell/lose money, avoid trading)
I don't even know if this is the good approach. I'm imagining that after learning, the network output will be always some number close to -1, 1 or 0 and it's just up to me where I set the threshold for buying or selling.
Is this a right way to use a neural network?