02-22-2018, 12:57 PM
(This post was last modified: 02-22-2018, 12:57 PM by JoshuaKeen.)
@tommiehansen
I'm importing a lot of data and doing a lot of backtests with your strategies.
Although this error appears:
2018-02-22 02:54:57 (INFO): Setting up Gekko in backtest mode
2018-02-22 02:54:57 (INFO):
2018-02-22 02:54:57 (INFO): Setting up:
2018-02-22 02:54:57 (INFO): Trading Advisor
2018-02-22 02:54:57 (INFO): Calculate trading advice
2018-02-22 02:54:57 (INFO): Using the strategy: RSI_BULL_BEAR_ADX
2018-02-22 02:54:57 (WARN): TALIB indicators could not be loaded, they will be unavailable.
2018-02-22 02:54:57 (INFO):
2018-02-22 02:54:57 (INFO): Setting up:
2018-02-22 02:54:57 (INFO): Paper Trader
2018-02-22 02:54:57 (INFO): Paper trader that simulates fake trades.
2018-02-22 02:54:57 (INFO):
2018-02-22 02:54:57 (INFO): Setting up:
2018-02-22 02:54:57 (INFO): Performance Analyzer
2018-02-22 02:54:57 (INFO): Analyzes performances of trades
2018-02-22 02:54:57 (INFO):
2018-02-22 02:54:57 (INFO): WARNING: BACKTESTING FEATURE NEEDS PROPER TESTING
2018-02-22 02:54:57 (INFO): WARNING: ACT ON THESE NUMBERS AT YOUR OWN RISK!
2018-02-22 02:55:11 (INFO): ====================================
2018-02-22 02:55:11 (INFO): Finished in 13.86 seconds
2018-02-22 02:55:11 (INFO): ====================================
The data is imported correctly and the backtests all give positive values. What I would like to understand is if this talib serves something in your strategies or the warning that appears is only a generic warning and my gekko is working correctly.
Been running this strategy for 3 days with no sales yet. The bot bought some LTC @ $210 and watched it go to $230 twice and it just held. Is there anyway to tweak this code for the bot to sell at a certain percentage?
02-28-2018, 05:43 PM
(This post was last modified: 02-28-2018, 05:48 PM by ankasem.)
hi
strategy does not work as you say
what is bear, what is bull
sma-rsi-ema --- long-short-read and learn them
OK
Hello everyone, i want to add the ADX strategy to a new config file , do i simply copy the toml data in to the config file or will need to do more?
I do not want to use the UI as i'm on a VPS so what to use command line to set this up.
Thanks
03-04-2018, 07:20 PM
(This post was last modified: 03-04-2018, 07:39 PM by Fab1j0.)
Hello
Any idea how to add this stop loss to strategy RSI_Bull_Bear_ADX ? I would be very thankfull. Let's say i want max 5% stop loss.
//In the strategy init create the stoploss variable:
this.stop = "";
if(logic that determines a sell || this.stop != "" && price<this.stop){
//if you want to show a stoploss being triggered in the console:
if(this.stop != "" && price<this.stop){
console.log("stoplosss triggered - "+ this.stop);
}
this.direction="short";
if(this.trend == "long"){
this.stop = "";
this.trend = this.direction;
this.advice(this.direction);
}
}else if(logic that determines a buy){
if(this.stop==""){
//sets up the stoploss, you should make the .2 a variable in the strategy config really
this.stop = price-(price*.2);
this.direction="long";
this.trend = this.direction;
this.advice(this.direction);
}
}
Well no matter that i try i get the error message "typeError: cannot read property SMA_long of undefined.
Copied new files and re install indicators still same error any ideas?
This is through using a config file and not UI