Comments (4)
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.
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.
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.
Has any progress been done on this? Does anyone have any tips for it.
from gekko-backtesttool.
Related Issues (20)
- CANT RUN backtest HOT 1
- Can't locate Parallel/ForkManager.pm in @INC HOT 4
- date ranges
- Gekko can't find the strategy HOT 1
- Config seems to ignore filepath for TOML files
- Support HOT 1
- Parsing logic for @profit should be updated
- Failed to change directory to 'util/genMarketFiles' HOT 2
- The proper Units of CandleSize:Warmup are NOT defined
- It seems when backtest number > 100.000 the tool slows down
- Test multiple candles
- [Request] Auto generated configs HOT 1
- Test progress is reset HOT 1
- Backtest fails to run with multiple parameter ranges in toml HOT 1
- BacktestTool results differ from Gekko UI HOT 1
- Backtest "Pausing" but still using CPU
- ./backtest-config.pl: Permission denied at backtest.pl line 38.
- can seem to get it open
- https://api.coinmarketcap.com/v1/ticker is deprecated HOT 1
- Can't locate SQL/Dialects/AnyData.pm
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gekko-backtesttool.