H256 / gekko-quasar-ui

An UI port for gekko trading bot using Quasar framework.
MIT License
112 stars 50 forks source link

How can tulip-indicators be displayed in the market graph? #15

Closed verbraucher closed 5 years ago

verbraucher commented 5 years ago

Action taken (what you did) I write my own strategy with some tulip-indicators.

strat.init = function() {
  this.addTulipIndicator('ema10','ema',{
      optInTimePeriod: 10
  });
  this.addTulipIndicator('ema21','ema',{
      optInTimePeriod: 21
  });
}

Expected result (what you hoped would happen) I want the indicators to be displayed in the market graph.

Actual result (unexpected outcome) there is no overlay in the market graph

How can the indicators be displayed in the market graph?

H256 commented 5 years ago

Normally it should choose to display indicators as overlay. What Gekko-Version are you using? Maybe it doesn't send the values to the client.

verbraucher commented 5 years ago

I use gekko v0.6.6. Thanks for your help!

H256 commented 5 years ago

Ok, 0.6.6 should send you a property stratUpdates inside the backtest-result. If this is not the case there might be something wrong with Quasar or Vue idk (the feature is enabled from within the frontend). You should be able to force Gekko to send these results by editing <gekko-path>/web/routes/baseConfig.js and setting stratUpdates: true around line 27 in the file. After that restart gekko.

verbraucher commented 5 years ago

Ok, 0.6.6 should send you a property stratUpdates inside the backtest-result. If this is not the case there might be something wrong with Quasar or Vue idk (the feature is enabled from within the frontend). You should be able to force Gekko to send these results by editing <gekko-path>/web/routes/baseConfig.js and setting stratUpdates: true around line 27 in the file. After that restart gekko.

That did not work either :/

verbraucher commented 5 years ago

With the new version of gekko v0.6.7 the tulip indicators will be displayed! See in the changelog (https://github.com/askmike/gekko/pull/2612):

... [CORE] Add Tulip and Talib Indicator-Results to 'stratUpdate' event (#2483 - @H256) ...