05-27-2018, 04:19 PM
(03-20-2018, 09:36 PM)PatTrends Wrote: riesgo.rafael - The math in your indicator looks correct but I don't think it displaces spanA and SpanB (i.e. pushes the cloud in the future)?
Kris191 - Yes I have this working. I'll post an update soon. I've added a few other optional substrategies as well like "EMA as Tenkan-Sen" for slightly earlier tk crosses.
Hi,
I'm facing some issues running the code in particular:
Code:
2018-05-27 18:08:51 (INFO): Setting up Gekko in backtest mode
2018-05-27 18:08:51 (INFO):
2018-05-27 18:08:51 (INFO): Setting up:
2018-05-27 18:08:51 (INFO): Trading Advisor
2018-05-27 18:08:51 (INFO): Calculate trading advice
2018-05-27 18:08:51 (INFO): Using the strategy: ICHIMOKU
/home/full/gekko/strategies/ICHIMOKU.js:3
strat.init = function(){
^
ReferenceError: strat is not defined
at Object.<anonymous> (/home/full/gekko/strategies/ICHIMOKU.js:3:1)
at Module._compile (module.js:577:32)
at Object.Module._extensions..js (module.js:586:10)
at Module.load (module.js:494:32)
at tryModuleLoad (module.js:453:12)
at Function.Module._load (module.js:445:3)
at Module.require (module.js:504:17)
at require (internal/module.js:20:19)
at Actor.setupTradingMethod (/home/full/gekko/plugins/tradingAdvisor/tradingAdvisor.js:48:16)
at Actor.bound [as setupTradingMethod] (/home/full/gekko/node_modules/lodash/dist/lodash.js:729:21)
xxx POST /api/backtest 500 1,268ms -
Error: non-error thrown: Child process has died.
at Object.onerror (/home/full/gekko/node_modules/koa/lib/context.js:105:40)
at process._tickCallback (internal/process/next_tick.js:109:7)
Could anybody help me?
Tks