Strategy - GA
#1
Sad 
Hello, fist , I am sorry for my bad English and second Gekko is the best!!!


I am working in a strategy, who use HMA and it use Tulip. Its run in backtest OK, with this config


Strategy
Code:
this.addTulipIndicator('hull1', 'hma', this.settings.hull1);
this.addTulipIndicator('hull2', 'hma', this.settings.hull2);

In gekko\config\strategies
Code:
[hull1]
optInTimePeriod = 7
[hull2]
optInTimePeriod = 14

And in sample-config
Code:
 hull1 : {      optInTimePeriod: 7      },
 hull2 : {      optInTimePeriod: 14      },


Now i Am traing to use this excelente idea (http://gekkowarez.com/gekko-genetic-algorithm/)

But it dosent work!! I have this error in command
Quote:Gekko was unable to configure Tulip Indicators:
        hma requires optInTimePeriod.
  xxx POST /api/backtest 500 909ms -

My Porblem (i Think) is in the file your.new.js 

Code:
getProperties: ()


i tried with everythings, but I don't how I need to put the variables, I  try whit this for example
Code:
hull1.optInTimePeriod: randomExt.integer(15,5),


it is not working.

can you help me?????

Smile Smile Smile Smile Smile
  Reply
#2
I am thinking , it's not a problem with GA, my problem is when I set optInTimePeriod in my strategy, I have two indicator-tulip with the same name, and i dont know how can i solve it (sorry again for my english and of course i am a noob whit java script but for this project I am learning about that)....
  Reply


Forum Jump:


Users browsing this thread: