[SHARE] Simple RSI BULL/BEAR strategy - Printable Version +- Gekko Forum (https://forum.gekko.wizb.it) +-- Forum: Gekko (https://forum.gekko.wizb.it/forum-13.html) +--- Forum: Strategy Development (https://forum.gekko.wizb.it/forum-12.html) +--- Thread: [SHARE] Simple RSI BULL/BEAR strategy (/thread-100.html) |
RE: [SHARE] Simple RSI BULL/BEAR strategy - tommiehansen - 02-21-2018 (02-18-2018, 08:17 PM)ankasem Wrote: thank you 1. Sort of. It is values that really is quite picky about the longer macro trend and will more rapidly go into the safer BEAR mode and stay there for longer periods. 2. I do not understand this, is it a question? RE: [SHARE] Simple RSI BULL/BEAR strategy - JoshuaKeen - 02-22-2018 @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. RE: [SHARE] Simple RSI BULL/BEAR strategy - Luke - 02-22-2018 Good evening. I installed Gekko and the two RSI strategies. All is working fine, almost When I run a backtest of RSI_BULL_BEAR_ADX, no results are shown in Gekko after the simulation. Is there a setting I have to modify? When I run RSI_BULL_BEAR everything is fine. I noticed a difference in the log: RSI_BULL_BEAR: Code: 2018-02-22 20:33:45 (INFO): Setting up Gekko in backtest mode RSI_BULL_BEAR_ADX: Code: 2018-02-22 20:31:24 (INFO): Setting up Gekko in backtest mode At the end of he second file, "POST /api/backtest 200 85s 524.07kb" (or something along these lines) is missing. Looks like there is no result data returned? Thanks a lot for your help!! Luke ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Edit: This SOLVED the issue: https://forum.gekko.wizb.it/thread-53.html?highlight=timeout RE: [SHARE] Simple RSI BULL/BEAR strategy - xBIGx - 02-28-2018 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? RE: [SHARE] Simple RSI BULL/BEAR strategy - ankasem - 02-28-2018 hi strategy does not work as you say what is bear, what is bull sma-rsi-ema --- long-short-read and learn them OK RE: [SHARE] Simple RSI BULL/BEAR strategy - Kris191 - 03-03-2018 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 RE: [SHARE] Simple RSI BULL/BEAR strategy - PapoKarlo - 03-04-2018 (02-12-2018, 01:25 PM)gibba Wrote:(02-12-2018, 12:48 AM)tommiehansen Wrote: On page 4: how are your tests? RE: [SHARE] Simple RSI BULL/BEAR strategy - Fab1j0 - 03-04-2018 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); } } RE: [SHARE] Simple RSI BULL/BEAR strategy - Kris191 - 03-04-2018 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 RE: [SHARE] Simple RSI BULL/BEAR strategy - Gryphon - 03-05-2018 (03-04-2018, 07:20 PM)Fab1j0 Wrote: HelloAs has been discovered by everyone who's tried, stop losses really don't work well with this strategy. If you want to try, my stop loss modification is here: https://raw.githubusercontent.com/RJPGriffin/gekko/develop/strategies/RSI_Bull_Bear_Adx_Stop.js You need to add a "Stop_Loss_Percent" variable to the toml file, or in the UI Parameters. This represents the % price you want it to fall to before selling. i.e. a 5% stop loss is 95% of the price, so put "Stop_Loss_Percent = 95" The reason I added the stop loss was to put the strategy through genetic analysis for a few days - the result was that for this strategy to perform the stop loss had to be low enough to never be hit. For me that pretty conclusively proved that it wasn't worth chasing. |