[SHARE] Simple RSI BULL/BEAR strategy
#11
AskMike states that its not easy to listen to some plugins.
Because of different Class?
  Reply
#12
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
  Reply
#13
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.
  Reply
#14
Where in the original code do you add these code suggestions?
  Reply
#15
Nowhere, read the first post. It specifically say you need to do 1 and 2.
  Reply
#16
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
  Reply
#17
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
  Reply
#18
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.
  Reply
#19
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)
  Reply
#20
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
  Reply


Forum Jump:


Users browsing this thread: