From cc0053cffdcf87d90d768a74ec18badd1d7e50af Mon Sep 17 00:00:00 2001 From: highlander Date: Sat, 7 Mar 2020 15:38:00 -0700 Subject: [PATCH] add fomo-core --- .idea/vcs.xml | 1 + .idea/workspace.xml | 813 +- apps/fomo-core/backfill.js | 270 + apps/fomo-core/boot.js | 73 + apps/fomo-core/conf.js | 261 + apps/fomo-core/extensions/README.md | 5 + .../extensions/exchanges/_stub/_codemap.js | 6 + .../extensions/exchanges/_stub/exchange.js | 57 + .../extensions/exchanges/_stub/products.json | 10 + .../extensions/exchanges/binance/exchange.js | 319 + .../exchanges/binance/products.json | 6250 ++++++ .../exchanges/binance/update-products.sh | 31 + .../extensions/exchanges/bitfinex/exchange.js | 668 + .../exchanges/bitfinex/products.json | 3274 ++++ .../exchanges/bitfinex/update-products.sh | 40 + .../extensions/exchanges/bitmex/exchange.js | 465 + .../extensions/exchanges/bitmex/products.json | 434 + .../extensions/exchanges/bitmex/test.js | 15 + .../exchanges/bitmex/update-products.sh | 28 + .../extensions/exchanges/bitstamp/exchange.js | 355 + .../exchanges/bitstamp/products.json | 137 + .../extensions/exchanges/bittrex/exchange.js | 399 + .../exchanges/bittrex/products.json | 2962 +++ .../exchanges/bittrex/update-products.sh | 42 + .../extensions/exchanges/cexio/exchange.js | 470 + .../extensions/exchanges/cexio/products.json | 362 + .../exchanges/cexio/update-products.sh | 35 + .../extensions/exchanges/gdax/exchange.js | 516 + .../extensions/exchanges/gdax/products.json | 434 + .../extensions/exchanges/gdax/test.js | 15 + .../exchanges/gdax/update-products.sh | 28 + .../extensions/exchanges/gemini/exchange.js | 287 + .../extensions/exchanges/gemini/package.json | 8 + .../extensions/exchanges/gemini/products.json | 122 + .../exchanges/gemini/update-products.sh | 27 + .../extensions/exchanges/hitbtc/exchange.js | 313 + .../extensions/exchanges/hitbtc/products.json | 3544 ++++ .../exchanges/hitbtc/update-products.sh | 32 + .../extensions/exchanges/kraken/exchange.js | 366 + .../extensions/exchanges/kraken/products.json | 527 + .../exchanges/kraken/update-products.sh | 104 + .../extensions/exchanges/poloniex/exchange.js | 295 + .../exchanges/poloniex/products.json | 994 + .../exchanges/poloniex/update-products.sh | 50 + .../extensions/exchanges/quadriga/exchange.js | 317 + .../exchanges/quadriga/package.json | 8 + .../exchanges/quadriga/products.json | 55 + .../extensions/exchanges/sim/exchange.js | 283 + .../extensions/exchanges/therock/exchange.js | 233 + .../exchanges/therock/products.json | 86 + .../exchanges/therock/update-products.sh | 30 + .../extensions/exchanges/wexnz/exchange.js | 222 + .../extensions/exchanges/wexnz/products.json | 474 + .../exchanges/wexnz/update-products.sh | 29 + .../fomo-core/extensions/notifiers/discord.js | 34 + apps/fomo-core/extensions/notifiers/ifttt.js | 24 + apps/fomo-core/extensions/notifiers/prowl.js | 16 + .../extensions/notifiers/pushbullet.js | 16 + .../extensions/notifiers/pushover.js | 30 + apps/fomo-core/extensions/notifiers/slack.js | 16 + .../extensions/notifiers/telegram.js | 17 + .../extensions/notifiers/textbelt.js | 24 + apps/fomo-core/extensions/notifiers/xmpp.js | 20 + apps/fomo-core/extensions/output/_codemap.js | 5 + apps/fomo-core/extensions/output/api.js | 70 + .../strategies/bollinger/strategy.js | 82 + .../strategies/cci_srsi/strategy.js | 136 + .../crossover_vwap/example_sims/index.html | 19 + .../crossover_vwap/example_sims/main.css | 284 + .../crossover_vwap/example_sims/vwapmax0.html | 394 + .../example_sims/vwapmax10.html | 394 + .../example_sims/vwapmax100.html | 394 + .../example_sims/vwapmax1000.html | 394 + .../example_sims/vwapmax10000.html | 394 + .../example_sims/vwapmax20000.html | 394 + .../example_sims/vwapmax500.html | 394 + .../example_sims/vwapmax5000.html | 394 + .../strategies/crossover_vwap/strategy.js | 108 + .../extensions/strategies/dema/strategy.js | 107 + .../strategies/ehlers_ft/strategy.js | 165 + .../strategies/ehlers_mama/README.md | 300 + .../strategies/ehlers_mama/strategy.js | 176 + .../strategies/ehlers_trend/README.md | 264 + .../strategies/ehlers_trend/strategy.js | 86 + .../strategies/forex_analytics/strategy.js | 182 + .../strategies/ichimoku/strategy.js | 84 + .../strategies/ichimoku_score/README.md | 470 + .../strategies/ichimoku_score/strategy.js | 426 + .../extensions/strategies/kc/strategy.js | 81 + .../extensions/strategies/macd/strategy.js | 111 + .../strategies/momentum/strategy.js | 70 + .../extensions/strategies/multi/strategy.js | 136 + .../extensions/strategies/neural/Capture.PNG | Bin 0 -> 1146418 bytes .../extensions/strategies/neural/README.md | 56 + .../strategies/neural/conf-example.js | 224 + .../extensions/strategies/neural/strategy.js | 160 + .../extensions/strategies/noop/strategy.js | 22 + .../extensions/strategies/pivot/strategy.js | 55 + .../extensions/strategies/renko/strategy.js | 141 + .../extensions/strategies/rsi/strategy.js | 104 + .../extensions/strategies/sar/strategy.js | 113 + .../extensions/strategies/speed/strategy.js | 74 + .../strategies/srsi_macd/strategy.js | 106 + .../extensions/strategies/stddev/strategy.js | 65 + .../extensions/strategies/ta_ema/strategy.js | 128 + .../extensions/strategies/ta_macd/strategy.js | 115 + .../strategies/ta_macd_ext/strategy.js | 149 + .../extensions/strategies/ta_ppo/strategy.js | 108 + .../strategies/ta_srsi_bollinger/strategy.js | 161 + .../strategies/ta_stoch_bollinger/strategy.js | 150 + .../extensions/strategies/ta_trix/strategy.js | 101 + .../strategies/ta_ultosc/strategy.js | 153 + .../strategies/ti_bollinger/strategy.js | 97 + .../extensions/strategies/ti_hma/strategy.js | 108 + .../strategies/ti_stoch/strategy.js | 100 + .../strategies/ti_stoch_bollinger/strategy.js | 142 + .../strategies/trend_bollinger/strategy.js | 108 + .../strategies/trend_ema/strategy.js | 114 + .../strategies/trendline/Capture.PNG | Bin 0 -> 1093076 bytes .../extensions/strategies/trendline/README.md | 29 + .../strategies/trendline/strategy.js | 125 + .../strategies/trust_distrust/strategy.js | 158 + .../extensions/strategies/vpt/strategy.js | 46 + .../strategies/wavetrend/strategy.js | 196 + apps/fomo-core/lib/_data-structures/Queue.js | 5 + apps/fomo-core/lib/adx.js | 32 + apps/fomo-core/lib/backtester.js | 603 + apps/fomo-core/lib/bollinger.js | 26 + apps/fomo-core/lib/cci.js | 35 + apps/fomo-core/lib/cmf.js | 12 + apps/fomo-core/lib/debug.js | 15 + apps/fomo-core/lib/ema.js | 16 + apps/fomo-core/lib/engine.js | 1087 ++ apps/fomo-core/lib/format.js | 34 + apps/fomo-core/lib/heikinAshi.js | 13 + apps/fomo-core/lib/helpers.js | 111 + apps/fomo-core/lib/highest.js | 7 + apps/fomo-core/lib/kc.js | 18 + apps/fomo-core/lib/lowest.js | 7 + apps/fomo-core/lib/lrc.js | 14 + apps/fomo-core/lib/momentum.js | 8 + apps/fomo-core/lib/normalize-selector.js | 4 + apps/fomo-core/lib/notify.js | 23 + apps/fomo-core/lib/objectify-selector.js | 20 + apps/fomo-core/lib/output.js | 19 + apps/fomo-core/lib/phenotype.js | 248 + apps/fomo-core/lib/rsi.js | 42 + apps/fomo-core/lib/sar.js | 70 + .../lib/services/collection-service.js | 34 + .../services/consume-and-process-service.js | 103 + .../lib/services/exchange-service.js | 55 + .../lib/services/resume-marker-service.js | 236 + apps/fomo-core/lib/services/trades-service.js | 130 + apps/fomo-core/lib/slow_stochastic.js | 23 + apps/fomo-core/lib/sma.js | 13 + apps/fomo-core/lib/srsi.js | 63 + apps/fomo-core/lib/stddev.js | 22 + apps/fomo-core/lib/ta_bollinger.js | 86 + apps/fomo-core/lib/ta_ema.js | 59 + apps/fomo-core/lib/ta_macd.js | 61 + apps/fomo-core/lib/ta_macd_ext.js | 92 + apps/fomo-core/lib/ta_ppo.js | 84 + apps/fomo-core/lib/ta_stoch.js | 96 + apps/fomo-core/lib/ta_stochrsi.js | 101 + apps/fomo-core/lib/ta_trix.js | 42 + apps/fomo-core/lib/ta_ultosc.js | 52 + apps/fomo-core/lib/ta_volume.js | 62 + apps/fomo-core/lib/ta_willr.js | 56 + apps/fomo-core/lib/tcf.js | 23 + apps/fomo-core/lib/ti_bollinger.js | 55 + apps/fomo-core/lib/ti_hma.js | 30 + apps/fomo-core/lib/ti_macd.js | 46 + apps/fomo-core/lib/ti_rsi.js | 52 + apps/fomo-core/lib/ti_stoch.js | 50 + apps/fomo-core/lib/ti_stochrsi.js | 89 + apps/fomo-core/lib/vma.js | 36 + apps/fomo-core/lib/vwap.js | 27 + apps/fomo-core/lib/wto.js | 39 + .../analytics/__tests__/candlesticks.js | 1 + .../analytics/__tests__/test-module.js | 14 + apps/fomo-core/modules/analytics/index.js | 386 + ...b7b5ba911f1eb9db-20190927_040010+0000.json | 81 + .../modules/bitmex/__tests__/stream.js | 29 + .../modules/bitmex/__tests__/test-module.js | 0 apps/fomo-core/modules/bitmex/index.js | 247 + .../candlebuilder/__tests__/test-module.js | 183 + apps/fomo-core/modules/candlebuilder/index.js | 0 .../modules/influx/__tests__/test-module.js | 0 apps/fomo-core/modules/influx/index.js | 0 apps/fomo-core/package-lock.json | 16051 ++++++++++++++++ apps/fomo-core/package.json | 112 + .../backfill/__tests__/test-module.js | 35 + apps/fomo-core/services/backfill/index.js | 316 + .../simulate/__tests__/test-module.js | 0 apps/fomo-core/services/simulate/index.js | 538 + ...b7b5ba911f1eb9db-20190927_040010+0000.json | 83 + ...27_040010+0000.json-simTrainingResult.html | 507 + .../services/simulate/templates/dashboard.ejs | 548 + .../dashboard_assets/css/animate.css | 7 + .../dashboard_assets/css/colors/default.css | 163 + .../dashboard_assets/css/spinners.css | 67 + .../templates/dashboard_assets/css/style.css | 10330 ++++++++++ .../templates/dashboard_assets/js/custom.js | 129 + .../dashboard_assets/js/jquery.slimscroll.js | 1 + .../templates/dashboard_assets/manifest.json | 13 + .../simulate/templates/sim_result.html.tpl | 500 + .../services/trade/__tests__/signal-buy.js | 30 + .../services/trade/__tests__/test-module.js | 35 + apps/fomo-core/services/trade/from-scratch.js | 220 + apps/fomo-core/services/trade/index.js | 769 + ...b7b5ba911f1eb9db-20190927_040010+0000.json | 83 + .../services/trade/package-lock.json | 705 + apps/fomo-core/services/trade/package.json | 14 + .../services/trade/workers/trade-worker.js | 262 + .../services/train/__tests__/test-module.js | 0 apps/fomo-core/services/train/index.js | 445 + ...b7b5ba911f1eb9db-20190927_040010+0000.json | 83 + ...4547c9e050fb2945-20190927_040010+0000.json | 83 + apps/fomo-core/simulations.js | 538 + apps/fomo-core/templates/dashboard.ejs | 546 + .../dashboard_assets/css/animate.css | 7 + .../dashboard_assets/css/colors/default.css | 163 + .../dashboard_assets/css/spinners.css | 67 + .../templates/dashboard_assets/css/style.css | 10330 ++++++++++ .../templates/dashboard_assets/js/custom.js | 129 + .../dashboard_assets/js/jquery.slimscroll.js | 1 + .../templates/dashboard_assets/manifest.json | 13 + apps/fomo-core/templates/sim_result.html.tpl | 500 + apps/fomo-core/test.js | 18 + apps/fomo-core/trade-from-scratch.js | 16 + apps/fomo-core/trade.js | 815 + apps/fomo-core/train.js | 441 + modules/fomo-binance/__tests__/test-module.js | 0 modules/fomobot/__tests__/test-module.js | 59 +- modules/fomobot/index.js | 264 +- .../lib/services/collection-service.js | 5 + modules/fomobot/package.json | 1 + modules/nedb/__tests__/test-module.js | 43 + modules/nedb/index.js | 32 + modules/nedb/package-lock.json | 80 + modules/nedb/package.json | 7 + modules/nedb/schema.js | 39 + 242 files changed, 88532 insertions(+), 338 deletions(-) create mode 100644 apps/fomo-core/backfill.js create mode 100644 apps/fomo-core/boot.js create mode 100644 apps/fomo-core/conf.js create mode 100644 apps/fomo-core/extensions/README.md create mode 100644 apps/fomo-core/extensions/exchanges/_stub/_codemap.js create mode 100644 apps/fomo-core/extensions/exchanges/_stub/exchange.js create mode 100644 apps/fomo-core/extensions/exchanges/_stub/products.json create mode 100644 apps/fomo-core/extensions/exchanges/binance/exchange.js create mode 100644 apps/fomo-core/extensions/exchanges/binance/products.json create mode 100755 apps/fomo-core/extensions/exchanges/binance/update-products.sh create mode 100644 apps/fomo-core/extensions/exchanges/bitfinex/exchange.js create mode 100644 apps/fomo-core/extensions/exchanges/bitfinex/products.json create mode 100755 apps/fomo-core/extensions/exchanges/bitfinex/update-products.sh create mode 100644 apps/fomo-core/extensions/exchanges/bitmex/exchange.js create mode 100644 apps/fomo-core/extensions/exchanges/bitmex/products.json create mode 100644 apps/fomo-core/extensions/exchanges/bitmex/test.js create mode 100755 apps/fomo-core/extensions/exchanges/bitmex/update-products.sh create mode 100644 apps/fomo-core/extensions/exchanges/bitstamp/exchange.js create mode 100644 apps/fomo-core/extensions/exchanges/bitstamp/products.json create mode 100644 apps/fomo-core/extensions/exchanges/bittrex/exchange.js create mode 100644 apps/fomo-core/extensions/exchanges/bittrex/products.json create mode 100755 apps/fomo-core/extensions/exchanges/bittrex/update-products.sh create mode 100644 apps/fomo-core/extensions/exchanges/cexio/exchange.js create mode 100644 apps/fomo-core/extensions/exchanges/cexio/products.json create mode 100755 apps/fomo-core/extensions/exchanges/cexio/update-products.sh create mode 100644 apps/fomo-core/extensions/exchanges/gdax/exchange.js create mode 100644 apps/fomo-core/extensions/exchanges/gdax/products.json create mode 100644 apps/fomo-core/extensions/exchanges/gdax/test.js create mode 100755 apps/fomo-core/extensions/exchanges/gdax/update-products.sh create mode 100644 apps/fomo-core/extensions/exchanges/gemini/exchange.js create mode 100644 apps/fomo-core/extensions/exchanges/gemini/package.json create mode 100644 apps/fomo-core/extensions/exchanges/gemini/products.json create mode 100755 apps/fomo-core/extensions/exchanges/gemini/update-products.sh create mode 100644 apps/fomo-core/extensions/exchanges/hitbtc/exchange.js create mode 100644 apps/fomo-core/extensions/exchanges/hitbtc/products.json create mode 100755 apps/fomo-core/extensions/exchanges/hitbtc/update-products.sh create mode 100644 apps/fomo-core/extensions/exchanges/kraken/exchange.js create mode 100644 apps/fomo-core/extensions/exchanges/kraken/products.json create mode 100755 apps/fomo-core/extensions/exchanges/kraken/update-products.sh create mode 100644 apps/fomo-core/extensions/exchanges/poloniex/exchange.js create mode 100644 apps/fomo-core/extensions/exchanges/poloniex/products.json create mode 100755 apps/fomo-core/extensions/exchanges/poloniex/update-products.sh create mode 100644 apps/fomo-core/extensions/exchanges/quadriga/exchange.js create mode 100644 apps/fomo-core/extensions/exchanges/quadriga/package.json create mode 100644 apps/fomo-core/extensions/exchanges/quadriga/products.json create mode 100644 apps/fomo-core/extensions/exchanges/sim/exchange.js create mode 100644 apps/fomo-core/extensions/exchanges/therock/exchange.js create mode 100644 apps/fomo-core/extensions/exchanges/therock/products.json create mode 100755 apps/fomo-core/extensions/exchanges/therock/update-products.sh create mode 100644 apps/fomo-core/extensions/exchanges/wexnz/exchange.js create mode 100644 apps/fomo-core/extensions/exchanges/wexnz/products.json create mode 100755 apps/fomo-core/extensions/exchanges/wexnz/update-products.sh create mode 100644 apps/fomo-core/extensions/notifiers/discord.js create mode 100644 apps/fomo-core/extensions/notifiers/ifttt.js create mode 100644 apps/fomo-core/extensions/notifiers/prowl.js create mode 100644 apps/fomo-core/extensions/notifiers/pushbullet.js create mode 100644 apps/fomo-core/extensions/notifiers/pushover.js create mode 100644 apps/fomo-core/extensions/notifiers/slack.js create mode 100644 apps/fomo-core/extensions/notifiers/telegram.js create mode 100644 apps/fomo-core/extensions/notifiers/textbelt.js create mode 100644 apps/fomo-core/extensions/notifiers/xmpp.js create mode 100644 apps/fomo-core/extensions/output/_codemap.js create mode 100644 apps/fomo-core/extensions/output/api.js create mode 100644 apps/fomo-core/extensions/strategies/bollinger/strategy.js create mode 100644 apps/fomo-core/extensions/strategies/cci_srsi/strategy.js create mode 100644 apps/fomo-core/extensions/strategies/crossover_vwap/example_sims/index.html create mode 100644 apps/fomo-core/extensions/strategies/crossover_vwap/example_sims/main.css create mode 100644 apps/fomo-core/extensions/strategies/crossover_vwap/example_sims/vwapmax0.html create mode 100644 apps/fomo-core/extensions/strategies/crossover_vwap/example_sims/vwapmax10.html create mode 100644 apps/fomo-core/extensions/strategies/crossover_vwap/example_sims/vwapmax100.html create mode 100644 apps/fomo-core/extensions/strategies/crossover_vwap/example_sims/vwapmax1000.html create mode 100644 apps/fomo-core/extensions/strategies/crossover_vwap/example_sims/vwapmax10000.html create mode 100644 apps/fomo-core/extensions/strategies/crossover_vwap/example_sims/vwapmax20000.html create mode 100644 apps/fomo-core/extensions/strategies/crossover_vwap/example_sims/vwapmax500.html create mode 100644 apps/fomo-core/extensions/strategies/crossover_vwap/example_sims/vwapmax5000.html create mode 100644 apps/fomo-core/extensions/strategies/crossover_vwap/strategy.js create mode 100644 apps/fomo-core/extensions/strategies/dema/strategy.js create mode 100644 apps/fomo-core/extensions/strategies/ehlers_ft/strategy.js create mode 100644 apps/fomo-core/extensions/strategies/ehlers_mama/README.md create mode 100644 apps/fomo-core/extensions/strategies/ehlers_mama/strategy.js create mode 100644 apps/fomo-core/extensions/strategies/ehlers_trend/README.md create mode 100644 apps/fomo-core/extensions/strategies/ehlers_trend/strategy.js create mode 100644 apps/fomo-core/extensions/strategies/forex_analytics/strategy.js create mode 100644 apps/fomo-core/extensions/strategies/ichimoku/strategy.js create mode 100644 apps/fomo-core/extensions/strategies/ichimoku_score/README.md create mode 100644 apps/fomo-core/extensions/strategies/ichimoku_score/strategy.js create mode 100644 apps/fomo-core/extensions/strategies/kc/strategy.js create mode 100644 apps/fomo-core/extensions/strategies/macd/strategy.js create mode 100644 apps/fomo-core/extensions/strategies/momentum/strategy.js create mode 100644 apps/fomo-core/extensions/strategies/multi/strategy.js create mode 100644 apps/fomo-core/extensions/strategies/neural/Capture.PNG create mode 100644 apps/fomo-core/extensions/strategies/neural/README.md create mode 100644 apps/fomo-core/extensions/strategies/neural/conf-example.js create mode 100644 apps/fomo-core/extensions/strategies/neural/strategy.js create mode 100644 apps/fomo-core/extensions/strategies/noop/strategy.js create mode 100644 apps/fomo-core/extensions/strategies/pivot/strategy.js create mode 100644 apps/fomo-core/extensions/strategies/renko/strategy.js create mode 100644 apps/fomo-core/extensions/strategies/rsi/strategy.js create mode 100644 apps/fomo-core/extensions/strategies/sar/strategy.js create mode 100644 apps/fomo-core/extensions/strategies/speed/strategy.js create mode 100644 apps/fomo-core/extensions/strategies/srsi_macd/strategy.js create mode 100644 apps/fomo-core/extensions/strategies/stddev/strategy.js create mode 100644 apps/fomo-core/extensions/strategies/ta_ema/strategy.js create mode 100644 apps/fomo-core/extensions/strategies/ta_macd/strategy.js create mode 100644 apps/fomo-core/extensions/strategies/ta_macd_ext/strategy.js create mode 100644 apps/fomo-core/extensions/strategies/ta_ppo/strategy.js create mode 100644 apps/fomo-core/extensions/strategies/ta_srsi_bollinger/strategy.js create mode 100644 apps/fomo-core/extensions/strategies/ta_stoch_bollinger/strategy.js create mode 100644 apps/fomo-core/extensions/strategies/ta_trix/strategy.js create mode 100644 apps/fomo-core/extensions/strategies/ta_ultosc/strategy.js create mode 100644 apps/fomo-core/extensions/strategies/ti_bollinger/strategy.js create mode 100644 apps/fomo-core/extensions/strategies/ti_hma/strategy.js create mode 100644 apps/fomo-core/extensions/strategies/ti_stoch/strategy.js create mode 100644 apps/fomo-core/extensions/strategies/ti_stoch_bollinger/strategy.js create mode 100644 apps/fomo-core/extensions/strategies/trend_bollinger/strategy.js create mode 100644 apps/fomo-core/extensions/strategies/trend_ema/strategy.js create mode 100644 apps/fomo-core/extensions/strategies/trendline/Capture.PNG create mode 100644 apps/fomo-core/extensions/strategies/trendline/README.md create mode 100644 apps/fomo-core/extensions/strategies/trendline/strategy.js create mode 100644 apps/fomo-core/extensions/strategies/trust_distrust/strategy.js create mode 100644 apps/fomo-core/extensions/strategies/vpt/strategy.js create mode 100644 apps/fomo-core/extensions/strategies/wavetrend/strategy.js create mode 100644 apps/fomo-core/lib/_data-structures/Queue.js create mode 100644 apps/fomo-core/lib/adx.js create mode 100644 apps/fomo-core/lib/backtester.js create mode 100644 apps/fomo-core/lib/bollinger.js create mode 100644 apps/fomo-core/lib/cci.js create mode 100644 apps/fomo-core/lib/cmf.js create mode 100644 apps/fomo-core/lib/debug.js create mode 100644 apps/fomo-core/lib/ema.js create mode 100644 apps/fomo-core/lib/engine.js create mode 100644 apps/fomo-core/lib/format.js create mode 100644 apps/fomo-core/lib/heikinAshi.js create mode 100644 apps/fomo-core/lib/helpers.js create mode 100644 apps/fomo-core/lib/highest.js create mode 100644 apps/fomo-core/lib/kc.js create mode 100644 apps/fomo-core/lib/lowest.js create mode 100644 apps/fomo-core/lib/lrc.js create mode 100644 apps/fomo-core/lib/momentum.js create mode 100644 apps/fomo-core/lib/normalize-selector.js create mode 100644 apps/fomo-core/lib/notify.js create mode 100644 apps/fomo-core/lib/objectify-selector.js create mode 100644 apps/fomo-core/lib/output.js create mode 100644 apps/fomo-core/lib/phenotype.js create mode 100644 apps/fomo-core/lib/rsi.js create mode 100644 apps/fomo-core/lib/sar.js create mode 100644 apps/fomo-core/lib/services/collection-service.js create mode 100644 apps/fomo-core/lib/services/consume-and-process-service.js create mode 100644 apps/fomo-core/lib/services/exchange-service.js create mode 100644 apps/fomo-core/lib/services/resume-marker-service.js create mode 100644 apps/fomo-core/lib/services/trades-service.js create mode 100644 apps/fomo-core/lib/slow_stochastic.js create mode 100644 apps/fomo-core/lib/sma.js create mode 100644 apps/fomo-core/lib/srsi.js create mode 100644 apps/fomo-core/lib/stddev.js create mode 100644 apps/fomo-core/lib/ta_bollinger.js create mode 100644 apps/fomo-core/lib/ta_ema.js create mode 100644 apps/fomo-core/lib/ta_macd.js create mode 100644 apps/fomo-core/lib/ta_macd_ext.js create mode 100644 apps/fomo-core/lib/ta_ppo.js create mode 100644 apps/fomo-core/lib/ta_stoch.js create mode 100644 apps/fomo-core/lib/ta_stochrsi.js create mode 100644 apps/fomo-core/lib/ta_trix.js create mode 100644 apps/fomo-core/lib/ta_ultosc.js create mode 100644 apps/fomo-core/lib/ta_volume.js create mode 100644 apps/fomo-core/lib/ta_willr.js create mode 100644 apps/fomo-core/lib/tcf.js create mode 100644 apps/fomo-core/lib/ti_bollinger.js create mode 100644 apps/fomo-core/lib/ti_hma.js create mode 100644 apps/fomo-core/lib/ti_macd.js create mode 100644 apps/fomo-core/lib/ti_rsi.js create mode 100644 apps/fomo-core/lib/ti_stoch.js create mode 100644 apps/fomo-core/lib/ti_stochrsi.js create mode 100644 apps/fomo-core/lib/vma.js create mode 100644 apps/fomo-core/lib/vwap.js create mode 100644 apps/fomo-core/lib/wto.js create mode 100644 apps/fomo-core/modules/analytics/__tests__/candlesticks.js create mode 100644 apps/fomo-core/modules/analytics/__tests__/test-module.js create mode 100644 apps/fomo-core/modules/analytics/index.js create mode 100644 apps/fomo-core/modules/analytics/models/temp.06386bd67dd782a007ba18193c5bfa4f4e6fd42a57849b3db7b5ba911f1eb9db-20190927_040010+0000.json create mode 100644 apps/fomo-core/modules/bitmex/__tests__/stream.js create mode 100644 apps/fomo-core/modules/bitmex/__tests__/test-module.js create mode 100644 apps/fomo-core/modules/bitmex/index.js create mode 100644 apps/fomo-core/modules/candlebuilder/__tests__/test-module.js create mode 100644 apps/fomo-core/modules/candlebuilder/index.js create mode 100644 apps/fomo-core/modules/influx/__tests__/test-module.js create mode 100644 apps/fomo-core/modules/influx/index.js create mode 100644 apps/fomo-core/package-lock.json create mode 100644 apps/fomo-core/package.json create mode 100644 apps/fomo-core/services/backfill/__tests__/test-module.js create mode 100644 apps/fomo-core/services/backfill/index.js create mode 100644 apps/fomo-core/services/simulate/__tests__/test-module.js create mode 100644 apps/fomo-core/services/simulate/index.js create mode 100644 apps/fomo-core/services/simulate/models/temp.06386bd67dd782a007ba18193c5bfa4f4e6fd42a57849b3db7b5ba911f1eb9db-20190927_040010+0000.json create mode 100644 apps/fomo-core/services/simulate/models/temp.06386bd67dd782a007ba18193c5bfa4f4e6fd42a57849b3db7b5ba911f1eb9db-20190927_040010+0000.json-simTrainingResult.html create mode 100644 apps/fomo-core/services/simulate/templates/dashboard.ejs create mode 100644 apps/fomo-core/services/simulate/templates/dashboard_assets/css/animate.css create mode 100644 apps/fomo-core/services/simulate/templates/dashboard_assets/css/colors/default.css create mode 100644 apps/fomo-core/services/simulate/templates/dashboard_assets/css/spinners.css create mode 100644 apps/fomo-core/services/simulate/templates/dashboard_assets/css/style.css create mode 100644 apps/fomo-core/services/simulate/templates/dashboard_assets/js/custom.js create mode 100644 apps/fomo-core/services/simulate/templates/dashboard_assets/js/jquery.slimscroll.js create mode 100644 apps/fomo-core/services/simulate/templates/dashboard_assets/manifest.json create mode 100644 apps/fomo-core/services/simulate/templates/sim_result.html.tpl create mode 100644 apps/fomo-core/services/trade/__tests__/signal-buy.js create mode 100644 apps/fomo-core/services/trade/__tests__/test-module.js create mode 100644 apps/fomo-core/services/trade/from-scratch.js create mode 100644 apps/fomo-core/services/trade/index.js create mode 100644 apps/fomo-core/services/trade/models/temp.06386bd67dd782a007ba18193c5bfa4f4e6fd42a57849b3db7b5ba911f1eb9db-20190927_040010+0000.json create mode 100644 apps/fomo-core/services/trade/package-lock.json create mode 100644 apps/fomo-core/services/trade/package.json create mode 100644 apps/fomo-core/services/trade/workers/trade-worker.js create mode 100644 apps/fomo-core/services/train/__tests__/test-module.js create mode 100644 apps/fomo-core/services/train/index.js create mode 100644 apps/fomo-core/services/train/models/temp.06386bd67dd782a007ba18193c5bfa4f4e6fd42a57849b3db7b5ba911f1eb9db-20190927_040010+0000.json create mode 100644 apps/fomo-core/services/train/models/temp.91c44006e951c5cd5069aed74874077926646decea3145974547c9e050fb2945-20190927_040010+0000.json create mode 100644 apps/fomo-core/simulations.js create mode 100644 apps/fomo-core/templates/dashboard.ejs create mode 100644 apps/fomo-core/templates/dashboard_assets/css/animate.css create mode 100644 apps/fomo-core/templates/dashboard_assets/css/colors/default.css create mode 100644 apps/fomo-core/templates/dashboard_assets/css/spinners.css create mode 100644 apps/fomo-core/templates/dashboard_assets/css/style.css create mode 100644 apps/fomo-core/templates/dashboard_assets/js/custom.js create mode 100644 apps/fomo-core/templates/dashboard_assets/js/jquery.slimscroll.js create mode 100644 apps/fomo-core/templates/dashboard_assets/manifest.json create mode 100644 apps/fomo-core/templates/sim_result.html.tpl create mode 100644 apps/fomo-core/test.js create mode 100644 apps/fomo-core/trade-from-scratch.js create mode 100644 apps/fomo-core/trade.js create mode 100644 apps/fomo-core/train.js create mode 100644 modules/fomo-binance/__tests__/test-module.js create mode 100644 modules/nedb/__tests__/test-module.js create mode 100644 modules/nedb/index.js create mode 100644 modules/nedb/package-lock.json create mode 100644 modules/nedb/package.json create mode 100644 modules/nedb/schema.js diff --git a/.idea/vcs.xml b/.idea/vcs.xml index 94a25f7..466ce4d 100644 --- a/.idea/vcs.xml +++ b/.idea/vcs.xml @@ -2,5 +2,6 @@ + \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 0d52406..28a4896 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,12 +2,248 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - + + + @@ -18,123 +254,93 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - - - - - - - + + - + - - + + + + + + + + - + + + + + + + + + + + + + - - + - + - - + + + + + + - + - - + + - - + + + + + + + - - + + - + - - + + @@ -145,17 +351,13 @@ - redis. - require - req - electron bitmex <> <><>< @@ -173,18 +375,21 @@ status: trades.push BALANCE_POSITION - isMiner config windowEditBot password showModal editBot openEditBot - balances + ../../ + resume_markers show + jest + balances + vue-radial-menu + isMiner - maxlength="5" size="5" class="te this.$log.debug this.seeds background-color: darkslateblue; @@ -214,6 +419,7 @@ fomo .onmessage( FOMO + ./ $PROJECT_DIR$/src/renderer/components @@ -235,10 +441,6 @@ - @@ -301,6 +507,7 @@ + @@ -311,36 +518,44 @@ - + - - + + - + + + + + + + + + +