Inspiration

The underlying idea is: buying when a stock starts to grows, and selling as soon as it starts decreasing. Our inspiration was trying to embed seasonality and daily cycles, to try to learn the pattern for each stock.

What it does

We consider performance of a stock over the past N days. Our trading agent evaluates the weighted average over the equation $$ \bar{r}t = \sum^N{i=0} w^{i} r_{N - i} $$ giving major weight to most recent performances. The performances are checked often - each 0.5 seconds - in order to have an always updated coefficient.

Great values of $\hat{r}t$ accounts for a growing stock, that we would like to buy: and so we put an order for $\hat{r}_t > k{\text{ask}}$, asking for the best bid price. Conversely, when $\hat{r}t < k{\text{bid}}$ we sell, putting our bid for the best ask price available.

How we built it

The implementation runs on Python.

Challenges we ran into

Our journey was not linear: we changed our mind in the middle of a previous challenge and started later. The main challenge was understanding the framework and connecting to the trading agent. From then on, we tried as many ideas as possible to increase our performances.

Accomplishments that we're proud of

We are proud to deliver a working agent. We had a lot to learn in terms of coding, and managed to write something that worked. Performance can be improved: nevertheless, the implementation is for now working.

What's next for hackita

We would love to keep on learning. We have many ideas on our project: some learnable layers could be implemented - starting from a simple linear regression, and going to more complex ones such as LSTMs and Spiking Neural Networks - to try to learn complex patterns in stocks behavior. Our team will continue on learning, and focus on implementations of our theoretical knowledge.

Built With

Share this project:

Updates

Submission history