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


Messages In This Thread
Plot data points - by tommiehansen - 02-04-2018, 02:07 PM
RE: Plot data points - by askmike - 02-05-2018, 05:25 AM
RE: Plot data points - by tommiehansen - 02-08-2018, 04:46 PM

Forum Jump:


Users browsing this thread: