Git Product home page Git Product logo

Comments (4)

cat944 avatar cat944 commented on June 15, 2024

I encounter the same problem.
Using $use_toml_files = 'no' with the repository file produces the same error.
I have checked that my strategy was working correctly directly with Gekko.
I have defined the 3 variables but got "You dont add strategy, pairs or warmups to configuration file."
Should we redefine this variables in JSON configuration or elsewhere ?

Extract of my configuration file :
@strategies = qw(
myCandlesPatterns
);
@pairs = qw(
kraken:EUR:ETH
);
@WarmUp = qw(
15:3
);

Thanks in advance for any help

from gekko-backtesttool.

cat944 avatar cat944 commented on June 15, 2024

I have modified backtest.pl to try to debug it and understand what happens.
I have not programmed in perl for many years, so be cool with my dirty code :-)

The error message is triggered by "if ($remain) {" that is false.
So i investigated the content of this variable:
It is set by " my $remain = scalar @pairs * scalar (keys %stratconfig) * scalar @WarmUp;"

Before 1104 line, i added some debug code:
$backtest_start = strftime "%Y-%m-%d %H:%M:%S", localtime;
print "MYDEBUG pair size=".scalar @pairs." value=@pairs\n";
print "MYDEBUG keys %stratconfig size=".scalar (keys %stratconfig)." value=@{[%stratconfig]}\n";
print "MYDEBUG warmup size=".scalar @WarmUp." value =@WarmUp\n";
print "MYDEBUG strategies=@strategies\n";
my $remain = scalar @pairs * scalar (keys %stratconfig) * scalar @WarmUp;

Result:
MYDEBUG pair size=1 value=kraken:EUR:ETH
MYDEBUG keys %stratconfig size=0 value=
MYDEBUG warmup size=1 value = 15:3
MYDEBUG strategies=myCandlesPatterns
You dont add strategy, pairs or warmups to configuration file.

=> %stratconfig is empty.

It seems to me that this hash contents the configuration of the strategy and is only initialized in the block beginning by "if ($use_toml_files eq 'yes') {" line 871.

In our case ($use_toml_files eq = 'no'), %stratconfig is not filled.

from gekko-backtesttool.

cat944 avatar cat944 commented on June 15, 2024

Another information : a configuration of my strategy exists in backtest-config.pl
$stratsettings = q(
config.myCandlesPatterns = {
"trailingStopPourcentage": 2
};
So, either the %stratconfig variable is not filled or my strategy configuration is not correct and not seen.

Any help or advice from someone knowing the tool ?

from gekko-backtesttool.

sipink avatar sipink commented on June 15, 2024

Has any progress been done on this? Does anyone have any tips for it.

from gekko-backtesttool.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.