10-08-2019, 10:04 PM
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 !?
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 !?