1.0.5 • Published 3 years ago
external-analytics v1.0.5
Exchange-external-analytics
The library is intended for quick testing of enter points algorithms
Installation
npm i external-analytics
Usage
For show help type in the terminal:
npm explore external-analytics -- npm run ea-help
or for detail help:
npm explore external-analytics -- npm run ea-help [needCommand]
For more convenience, you can prescribe the following in your package.json:
{
"scripts": {
"help": "npm explore external-analytics -- npm run ea-help"
}
}
and for show help type in the terminal:
npm run help
npm run help [needCommand]
For calculate:
const ExternalAnalytics = require('external-analytics');
(async () => {
await externalAnalytics.run('getCandles', 'binance', 'spot', ['BTCUSDT', 'ETHBTC'], ['30m'], '2020-12-20 00:00:00');
// Your code for find enter points
...
let yourCalculatedEnterPoints = {BTCUSDT:[1608453902, 1608540302, 1608626702], ETHBTC:[1608453902, 1608540302, 1608626702]};
externalAnalytics
.set('ENTER_POINTS', YourEnterPoints)
.set('CONFIG', {MAX_TP: 15, MAX_SL: 15});
await externalAnalytics
.run('getTPSL', yourCalculatedEnterPoints, ['long', 'short'])
.run('viewTop', 5);
})();
Credits
Written by bofh from VoblaSoft
FAQ for all VoblaSoft products
License
MIT