Posts

Building a Trading Bot from Scratch - Part 6 - environmental hell

avatar of @leoplaw
25
@leoplaw
·
·
0 views
·
1 min read

No, I'm not talking about climate change.

I'm talking about server versus client (browser). Node.js seemed like a smart choice to build this trading app with at the start. One programming language for all environments. But, that also led me to sometimes forget that the features available for either are not always the same.

Take for instance multi-threading. it is implemented differently in both environments, which can require some tricky coding for isomorphic modules that could be loaded in either.

In the end I surmounted that challenge and and finally reached a milestone.

The app can now run multiple charts streaming the price from the exchange on the same page. This has been a feature requirement from the start as so far, all other free apps / bots I have come across only display one.

If you've spent any time with technical analysis, you'll know that comparing multiple time frames to determine the potential trend is a must.

So while my app is not yet capable of making trades, it is already useful for me as a technical analysis tool. I reached this goal a little sooner than I expected which is exciting and very motivating.

The next goals are adding some indicators to the charts, and then, start on order placement.

I'm still some way off from any sort of automated trading, but I'm making progress.

Posted Using LeoFinance Beta```language