resolved passes one argument with the best found strategy. Example: var status tMarketStatus(candlesticks, strategy: strategy console. To do further builds you can use node-gyp build, you can run embedded examples which are located in the examples folder cd examples node example, nPM, you can install alytics via npm: npm strategic active trading aberdeen alternative strategies install alytics, usage. Start and end are the candlesticks describing the boundaries of a given trade. ; Generation: 298 Fitness:. Where strategy stands for the currently best strategy found in a certain generation. Function progressCallback(strategy, fitness, generation) console. progressCallback parameter has to be a function. Log Fitness: ' fitness Generation: ' generation ).then(function(strategy) console.
This function is invoked when one generation passes. From 5 minute interval to 30 minute interval) candlesticks parameter should contain an array of objects representing one candlestick in ohlc chart. strategy is the result from the findStrategy function and defines when to buy and when to sell. Candlesticks parameter should contain an array of objects representing one candlestick in ohlc chart. Open:.113990, high:.113990, low:.113890, close:.113890, time: options parameter lists one property strategy: buy :., sell :. . The result of technical analysis are two binary trees describing strategies for buy and sell signals which produced profit in a certain period of time specified by the input ohlc data set. Log(trades Can output: "Buy true, "Revenue., "MaximumLoss., "MaximumProfit., "ProfitBeforeLoss" : true, "start "open.10604, "low.10586, "high.10762, "close.10711, "time, "end "open.10833, "low.10833, "high.11044, "close.11023, "time Where buy stands for whether the specific trade was made. MaximumLoss describes how far the price movement went against the wanted direction. Converts ticks to one minute ohlc * Input could be for example: time : 0, value :.225, time : 10, value :.226, * time : 20, value :.227, time : 30, value :.228. The strategy parameter describes which strategy it shall use as a referential. ; Generation: 297 Fitness:. Log Fitness: ' fitness Generation: ' generation could print Fitness:.