You can Gekko to execute these live signals, note that this way you can't use the backtester (unless you also have a history of these signals).
Note that there is no integration so you will have to get your hands dirty in creating one (can be 5 lines of code, but that depends on the signal sour
By far the easiest is to write a strategy that ignores candle data from Gekko and simply listens to your live source for signals and triggers advice based on them. If your other signals have a REST API you can for example do something like this:
That's just an example, any other way of getting the data inside the strategy works as well. (I am not familiar with Amibroker).
Note that there is no integration so you will have to get your hands dirty in creating one (can be 5 lines of code, but that depends on the signal sour
By far the easiest is to write a strategy that ignores candle data from Gekko and simply listens to your live source for signals and triggers advice based on them. If your other signals have a REST API you can for example do something like this:
Code:
var log = require('../core/log');
var request = require('request');
var strat = {};
strat.init = function() {
this.currentTrend = false;
}
strat.update = function(candle) {}
strat.log = function() {}
strat.check = function() {
request('https://url-to-your-signal.com', (err, resp) = {
if(this.currentTrend === 'long' && resp === 'short') {
// If it was long, set it to short
this.currentTrend = 'short';
this.advice('short');
} else if(this.currentTrend === 'short' && resp === 'long') {
// If it was short, set it to long
this.currentTrend = 'long';
this.advice('long');
}
});
}
module.exports = strat;
That's just an example, any other way of getting the data inside the strategy works as well. (I am not familiar with Amibroker).