JS Trader bot
Decision Making Process
The trading algorithm analyses relationships between the 30-tick Moving Average and 5-tick Moving Average. Once the two cross over and the most recent tick contains a favourable move in prices, our bot would execute a trade to take advantage of the trend.
This algorithm produced consistent results netting positive profit to loss ratios.
networking.js handled networking and would execute the decisions given to it based on analysis in marketlog.js.
marketLogic.js handles the decision making process and contains the trading algorithm.
createMessage.js is used for formatting requests too and from the server.