Skip to content
This repository has been archived by the owner on Feb 16, 2020. It is now read-only.

ReferenceError: relativeYearlyProfit is not defined #2190

Closed
askmike opened this issue May 18, 2018 · 0 comments
Closed

ReferenceError: relativeYearlyProfit is not defined #2190

askmike opened this issue May 18, 2018 · 0 comments
Labels

Comments

@askmike
Copy link
Owner

askmike commented May 18, 2018

2018-05-18 18:23:28 (INFO): Starting to watch the market: Exchange Simulator BTC/USD
[EXCHANGE SIMULATOR] emitted 1800 fake trades, up until 2018-05-18 18:23:28.
[EXCHANGE SIMULATOR] emitted 20 fake trades, up until 2018-05-18 18:23:48.
[EXCHANGE SIMULATOR] emitted 20 fake trades, up until 2018-05-18 18:24:08.
/Users/pear/projects/gekko/plugins/performanceAnalyzer/performanceAnalyzer.js:167
  const sharpe = (relativeYearlyProfit - perfConfig.riskFreeReturn) 
                 ^

ReferenceError: relativeYearlyProfit is not defined
    at PerformanceAnalyzer.calculateReportStatistics (/Users/pear/projects/gekko/plugins/performanceAnalyzer/performanceAnalyzer.js:167:18)
    at PerformanceAnalyzer.bound [as calculateReportStatistics] (/Users/pear/projects/gekko/node_modules/lodash/dist/lodash.js:729:21)
    at PerformanceAnalyzer.processTradeCompleted (/Users/pear/projects/gekko/plugins/performanceAnalyzer/performanceAnalyzer.js:93:23)
    at PaperTrader.bound (/Users/pear/projects/gekko/node_modules/lodash/dist/lodash.js:729:21)
    at emitOne (events.js:116:13)
    at PaperTrader.emit (events.js:211:7)
    at PaperTrader.bound [as emit] (/Users/pear/projects/gekko/node_modules/lodash/dist/lodash.js:729:21)
    at PaperTrader.GekkoEventEmitter.broadcastDeferredEmit (/Users/pear/projects/gekko/core/emitter.js:30:8)
    at PaperTrader.bound [as broadcastDeferredEmit] (/Users/pear/projects/gekko/node_modules/lodash/dist/lodash.js:729:21)
    at _.find.producer (/Users/pear/projects/gekko/core/gekkoStream.js:74:26)
@askmike askmike added the v0.6 label May 18, 2018
askmike added a commit that referenced this issue May 18, 2018
askmike added a commit that referenced this issue May 18, 2018
@askmike askmike closed this as completed May 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant