Gekko Forum
Running into problems with my first 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: Running into problems with my first strategy (/thread-57883.html)



Running into problems with my first strategy - catorRunner - 03-14-2019

First, I am know close to nothing about JS (I am taking a online course at the moment) 
The simple strategy I am attempting to create uses Tulip HMA and WMA (and I 'll add some other stuff later) 

I used the "moon" strategy (from the intro video) as my base to and I am attempting to add WMA to it but for some reason, parameter for WMA I set in .toml file is not read. 

Code:
strat.init = function() {
...
     this.addTulipIndicator('wmaS', 'wma', {
      optInTimePeriod: this.settings.wmaS
    });

and in my toml file, I got  wmaS = 21

The error I receive is: 


Quote:Error: Gekko was unable to configure Tulip Indicators:
       optInTimePeriod needs to be a number

What am I missing?


RE: Running into problems with my first strategy - mrseo - 04-20-2021

You actually make it look so easy with your performance but I find this matter to be actually something which I think I would never comprehend. It seems too complicated and extremely broad for me. I'm looking forward for your next post, I’ll try to get the hang of it! Vakantiewoning