02-02-2018, 09:39 PM
(This post was last modified: 02-03-2018, 06:42 PM by susitronix.)
AskMike states that its not easy to listen to some plugins.
Because of different Class?
Because of different Class?
[SHARE] Simple RSI BULL/BEAR strategy
|
02-02-2018, 09:39 PM
(This post was last modified: 02-03-2018, 06:42 PM by susitronix.)
AskMike states that its not easy to listen to some plugins.
Because of different Class?
02-03-2018, 05:27 AM
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
02-03-2018, 09:57 AM
(This post was last modified: 02-03-2018, 07:20 PM by tommiehansen.)
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.
02-03-2018, 02:00 PM
Where in the original code do you add these code suggestions?
02-03-2018, 04:04 PM
(This post was last modified: 02-03-2018, 04:06 PM by tommiehansen.)
Nowhere, read the first post. It specifically say you need to do 1 and 2.
02-03-2018, 05:24 PM
(This post was last modified: 02-03-2018, 05:29 PM by tommiehansen.)
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
02-03-2018, 06:49 PM
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
02-03-2018, 07:21 PM
(This post was last modified: 02-03-2018, 07:30 PM by tommiehansen.)
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.
02-03-2018, 09:48 PM
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
02-03-2018, 10:32 PM
(This post was last modified: 02-03-2018, 10:34 PM by susitronix.)
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 |