Plot data points
#1
Ability to plot data from a/the strategy.

Use something similar to TradingView's pinescript, pseudo code:

Code:
var strat = {

    init: function()
    {
        this.name = 'Hello world';
        
        this.addTulipIndicator('maSlow', 'tema', { optInTimePeriod: this.settings.long });
        this.addTulipIndicator('maFast', 'sma', { optInTimePeriod: this.settings.short });
        this.addTulipIndicator('myRSI', 'rsi', { optInTimePeriod: this.settings.RSI });
        
        this.plot(
            { data: 'maSlow', color: 'black', width: 2, overlay: true },
            { data: 'maFast', color: '#f00', width: 1, overlay: true },
            { data: 'myRSI', overlay: false }
        );
    }

};


Params

- data
- color (named/hex)
- line width (in px)
- overlay (overlay the data or add it under the graph)
  Reply
#2
Hey! There were some ideas in the past. Though I don't think strategies need to define what they want to plot: we can simply plot all indicators results automatically since Gekko is aware about them already. See here for a start: https://github.com/askmike/gekko/pull/793

Note that that PR won't be finished soon, it makes a lot more sense to add this functionality to the completely new UI we will build Smile
  Reply
#3
Yes, i read that after posting this thread ofc. Smile

I agree that you shouldn't use HighCharts, especially since there are free alternatives such as the Google Visualization library etc.
  Reply


Forum Jump:


Users browsing this thread: