|
Re: New Zorro version 2.30
[Re: jcl]
#481277
08/21/20 10:05
08/21/20 10:05
|
Joined: Jul 2017
Posts: 784
Zheka
User
|
User
Joined: Jul 2017
Posts: 784
|
- Bug in plot when the StartDate is set in the format YYYYMMDD: If you cannot fix it, contact support. They'll help. Before I do that pls confirm that 1) this was indeed checked and/or 2) the issue in the script is obvious to you
|
|
|
Re: New Zorro version 2.30
[Re: Zheka]
#481286
08/22/20 21:22
08/22/20 21:22
|
Joined: Dec 2019
Posts: 53
ozgur
Junior Member
|
Junior Member
Joined: Dec 2019
Posts: 53
|
There is a bug in plot() when StartDate is set in the format YYYYMMDD. This script: function run(){
set(PLOTNOW);
StartDate = 20190201;
EndDate = 2020;
BarPeriod = 60;
var K=ifelse(!(Bar%120),1,0);
plot("WHL",K,BARS+NEW,RED);
} with StartDate=2019 plots as expected (screen 1) . But when StartDate is set as StartDate=20190201, plot() drops most items to be plotted (pic 2), even after enlargement of the plot area. The problem can be reliably replicated for Bar%120 ( nothing is plotted), but is intermittent for lower values of the divisor (e.g. 24) (and can work for GBPUSD but not for EURUSD) Fyi, above code seems to be working for me.
|
|
|
Re: New Zorro version 2.30
[Re: jcl]
#481288
08/23/20 07:46
08/23/20 07:46
|
Joined: May 2020
Posts: 45
AdamWu
Newbie
|
Newbie
Joined: May 2020
Posts: 45
|
Hi, I found this in the document: "Multicore training is now possible with scripts located in the StrategyFolder given in Zorro.ini." My strategy is in the StrategyFolder, but it seems not using more cpu resource(30-40%), which is the same with 2.25. What is the problem? My code is like this:
function run(){
if(is(INITRUN)) NumCores = -1;
set(PARAMETERS+LOGFILE+PLOTNOW); //+PLOTNOW
#ifdef USE_MONEY_MANAGEMENT
set(PARAMETERS+FACTORS+LOGFILE);
Capital = 2000;
#endif
if(Train){
StartDate = 20190202;
EndDate = 20200802;
NumWFOCycles = 3;
...
|
|
|
|