Hacker News new | ask | show | jobs
I have created a full fledge stock backtesting app in Node, what now?
2 points by kewin87 3558 days ago
So, I have created a new app over the last few months.

A full app, focused on backtesting tickdata.

Its a client (browser), in which you can set tests parameters, run tests, show candle graphs and show backtesting reports etc.

The server is heavily focus on performance, spawning a thread for each new instrument. It saves all tick data to binary Float64Arrays (so very fast) and has a structure that allows multiple tick engines to be set (so you could run multiple EA's in parallel on the same instrument).

Compared to MetaTrader and Cloud9Trader:

* No 'locked-in' IDE required like with MetaTrader and Cloud9.. You can just use your own favorite code editor, or instead use the one supplied in the client (same as cloud9 IDE)

* Full parallel testing (every instrument spawns a new thread, very fast)

* Every tick is async, so could be used in all kind of ways

* 100% Javascript, easy to learn, easy to extend, easy to do tons of stuff.

* Build-in Moving average indicators etc (more is coming up)

* A fully separated server and client (server has rest client with express, client will become Angular2, but quick and dirty for now with socket.io)

* Build in API for fetching data from broker, that can be extended to fit custom broker

* Build in data converter for reading/writing binary to cache

* Some unit tests are in place (will become more)

So the question is now, what to do with it? I know Metatrader is fully opensource, and I lean to do to the same.

I could be releasing it in the following ways:

* Fully fledged Electron desktop apps for windows, linux, mac.

* Host my own backtest server

* Put all on github and let the community play. You could build custom clients on it (and only use the backtest server and rest calls) or use it as it is meant to be used, to start writing stock testing scripts

It will be my first opensource project, so any thoughts are more then welcome.

    Many many thanks
DutchKevv
1 comments

0: The post appears to be missing a link.

1: In order to submit a link using Hacker News |submit| page, the text box for writing comments must be blank, otherwise its contents will be used instead of the link. The |submit| page only allows a link or text, not both. It defaults to text if both are present.

2: If it meets the guidelines, this might make a good 'Show HN'. Show HN guidelines: https://news.ycombinator.com/showhn.html

3: After submitting {only} a link to a project, it is ok to then add a comment after the submission shows up on the |new| page.

Good luck.