Gekko Forum
[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)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38


Werkkrew Stoploss - susitronix - 02-02-2018

AskMike states that its not easy to listen to some plugins.
Because of different Class?


RE: Share: Simple RSI BULL/BEAR strategy - Drewskie - 02-03-2018

Good day,

I am completely new to this. When trying your stratergy with back test I get this error

2018-02-03 07:24:17 (INFO): Setting up Gekko in backtest mode
2018-02-03 07:24:17 (INFO):
2018-02-03 07:24:17 (INFO): Setting up:
2018-02-03 07:24:17 (INFO): Trading Advisor
2018-02-03 07:24:17 (INFO): Calculate trading advice
2018-02-03 07:24:17 (INFO): Using the strategy: RSI_BULL_BEAR
/home/drewskie/gekko/strategies/RSI_BULL_BEAR.js:160
TOML-file
^

ReferenceError: TOML is not defined
at Object.<anonymous> (/home/drewskie/gekko/strategies/RSI_BULL_BEAR.js:160:1)
at Module._compile (module.js:660:30)
at Object.Module._extensions..js (module.js:671:10)
at Module.load (module.js:573:32)
at tryModuleLoad (module.js:513:12)
at Function.Module._load (module.js:505:3)
at Module.require (module.js:604:17)
at require (internal/module.js:11:18)
at Actor.setupTradingMethod (/home/drewskie/gekko/plugins/tradingAdvisor/tradingAdvisor.js:48:16)
at Actor.bound [as setupTradingMethod] (/home/drewskie/gekko/node_modules/lodash/dist/lodash.js:729:21)
xxx POST /api/backtest 500 359ms -

Error: non-error thrown: Child process has died.
at Object.onerror (/home/drewskie/gekko/node_modules/koa/lib/context.js:105:40)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:160:7)

Any advise on what I have done wrong


RE: Share: Simple RSI BULL/BEAR strategy - tommiehansen - 02-03-2018

It's specifically say what's wrong:
ReferenceError: TOML is not defined


You need both files, both the JS and the TOML-file. Make sure you have followed the install instructions in the first post.


RE: Share: Simple RSI BULL/BEAR strategy - briancrypto - 02-03-2018

Where in the original code do you add these code suggestions?


RE: Share: Simple RSI BULL/BEAR strategy - tommiehansen - 02-03-2018

Nowhere, read the first post. It specifically say you need to do 1 and 2.


RE: Share: Simple RSI BULL/BEAR strategy - tommiehansen - 02-03-2018

Updated script and added another long backtest for ETH-USDT (Poloniex).

Also tested
1. Stoploss: Results where worse so removed; it's quite obvious though -- when buying at low rsi we want to wait until we break out of that trend. With the stoploss it just sold and then tried to buy again (or worse -- didn't buy again).
2. Take profit @ X%: Results where again worse so removed


Removed post - susitronix - 02-03-2018

This pseudoCode was Removed in the post please remove it also from your reply.
...it was NOT even testet or so because must learn about java and Eclipse for beginners. 101


RE: Share: Simple RSI BULL/BEAR strategy - tommiehansen - 02-03-2018

Ok. But java != javascript. You don't need Eclipse either. Who the hell recommended you to start with that?
Just need notepad++ or whatever and just write stuff + learn the basic logic e.g. A = A, A != B.


RE: Share: Simple RSI BULL/BEAR strategy - SettusBlake - 02-03-2018

Hello! (First post for me here)

I tried your strategie, but got this error:

Code:
2018-02-03 22:44:49 (INFO):     Setting up Gekko in backtest mode
2018-02-03 22:44:49 (INFO):
2018-02-03 22:44:49 (INFO):     Setting up:
2018-02-03 22:44:49 (INFO):              Trading Advisor
2018-02-03 22:44:49 (INFO):              Calculate trading advice
2018-02-03 22:44:49 (INFO):              Using the strategy: RSI_BULL_BEAR
2018-02-03 22:44:49 (WARN):     TALIB indicators could not be loaded, they will be unavailable.
2018-02-03 22:44:49 (WARN):     TULIP indicators could not be loaded, they will be unavailable.
 xxx POST /api/backtest 500 252ms -

 Error: non-error thrown: Child process has died.
     at Object.onerror (/home/unix/gekko/node_modules/koa/lib/context.js:105:40)
     at <anonymous>
     at process._tickCallback (internal/process/next_tick.js:188:7)



RE: Share: Simple RSI BULL/BEAR strategy - susitronix - 02-03-2018

Ok i saw that the eclipse would help by set opposet brackets and more. (decrase human error)

I learnd from Mikes article that listening to a other Plugin could be problematic,

The class hirarchy might be very intresting to look at.
A Crossprobing tool would help understand.

THANKS for the Update. very nice structurized