Skip to content

Instantly share code, notes, and snippets.

@mark-sch
Created August 30, 2018 09:37
Show Gist options
  • Save mark-sch/39f069b0281b940d6f4c63681684f562 to your computer and use it in GitHub Desktop.
Save mark-sch/39f069b0281b940d6f4c63681684f562 to your computer and use it in GitHub Desktop.
2018-08-30 11:31:14 (DEBUG): Check database exists: binance
2018-08-30 11:31:14 (DEBUG): Database exists: binance
2018-08-30 11:31:14 (DEBUG): Postgres connection pool is ready, db binance
2018-08-30 11:31:14 (DEBUG): ***** buy after low peak ***** 1533687240000
2018-08-30 11:31:14 (INFO): [StratRunner] Trailing stop trail value specified as percentage, setting to: 120.96108000000002
>>>>>>>>>>>>>>>> relayAdvice
########## processAdvice, TRIGGER: {"type":"trailingStop","trailPercentage":1.8,"trailValue":120.96108000000002}
2018-08-30 11:31:14 (INFO): 2018-08-08 02:15:00: Paper trader simulated a BUY @ 6589.19 USDT 0.00000000 USDT => 0.15153607 BTC
!!!!!!!!!!!!!!!!!!!!!!! onStopTrigger, showing
Trace: console trace
at PaperTrader.onStopTrigger (/git/gekko06/plugins/paperTrader/paperTrader.js:256:11)
at TrailingStop.bound [as onTrigger] (/git/gekko06/node_modules/lodash/dist/lodash.js:729:21)
at TrailingStop.trigger (/git/gekko06/exchange/triggers/trailingStop.js:56:12)
at TrailingStop.updatePrice (/git/gekko06/exchange/triggers/trailingStop.js:34:12)
at PaperTrader.processCandle (/git/gekko06/plugins/paperTrader/paperTrader.js:289:37)
at PaperTrader.bound [as processCandle] (/git/gekko06/node_modules/lodash/dist/lodash.js:729:21)
at Gekko.<anonymous> (/git/gekko06/core/gekkoStream.js:55:9)
at /git/gekko06/node_modules/lodash/dist/lodash.js:901:23
at Function.forEach (/git/gekko06/node_modules/lodash/dist/lodash.js:3298:15)
at Gekko._write (/git/gekko06/core/gekkoStream.js:53:7)
########## processAdvice, TRIGGER: {"type":"trailingStop","id":"advice-1","ohhh":"no"}
2018-08-30 11:31:14 (DEBUG): {"id":"trade-2","adviceId":"trade-1","action":"sell","cost":1.4810453569484463,"amount":0.15130876589468514,"price":6515.7,"portfolio":{"asset":0,"currency":985.88252594},"balance":985.88252594,"date":"2018-08-08T04:11:00.000Z","effectivePrice":6505.92645,"feePercent":0.15,"status":"tradeCompleted","origin":"trailingStop"}
2018-08-30 11:31:14 (INFO): 2018-08-08 06:11:00: Paper trader simulated a SELL @ 6515.70 USDT 985.88252594 USDT <= 0.00000000 BTC
>>>>>>>>>>>>>>>> relayAdvice
########## processAdvice, TRIGGER: undefined
2018-08-30 11:31:14 (DEBUG): {"id":"trade-3","adviceId":"advice-2","action":"sell","cost":0,"amount":0.15130876589468514,"price":6515.7,"portfolio":{"asset":0,"currency":985.88252594},"balance":985.88252594,"date":"2018-08-08T04:11:00.000Z","effectivePrice":6505.92645,"feePercent":0.15,"status":"tradeCompleted","origin":"advice"}
2018-08-30 11:31:14 (INFO): 2018-08-08 06:11:00: Paper trader simulated a SELL @ 6515.70 USDT 985.88252594 USDT <= 0.00000000 BTC
2018-08-30 11:31:16 (WARN): Simulation based on incomplete market data (302 missing between 2018-08-28 01:20:00 and 2018-08-28 12:57:00).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment