Realtime debug
#1
Hi, 


I have a simple strategy that is :

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

}

strat.check = function(candle) {

        const ema10 = this.tulipIndicators.ema10.result.result;
        const ema21 = this.tulipIndicators.ema21.result.result;

        if(ema10>ema21){
                console.log("buy);
        } else {
                console.log("sell");
        }


that is work good in a backtest enviroment.

I already changed the line below in config.js :

config['I understand that Gekko only automates MY OWN trading strategies'] = true

and i am running with this command line :

node gekko --config config.js

but nothing is printed in console when the condition goes true or not.

How can i put it to run in realtime mode !?
  Reply


Messages In This Thread
Realtime debug - by aixbr - 10-08-2019, 10:04 PM
RE: Realtime debug - by Hallonstedt - 10-09-2019, 09:42 AM
RE: Realtime debug - by aixbr - 10-09-2019, 08:19 PM

Forum Jump:


Users browsing this thread: