Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (Ayumi, AndrewAMD), 833 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Zorro 1.41 #456937
12/16/15 10:13
12/16/15 10:13
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline OP

Chief Engineer
jcl  Offline OP

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
A new beta version was uploaded to the download page. The new features are a user-defined control panel for strategies, and a single step mode for debugging.

Re: Zorro 1.41 [Re: jcl] #457015
12/19/15 20:06
12/19/15 20:06
Joined: Dec 2013
Posts: 568
Fuerth, DE
Sphin Offline
User
Sphin  Offline
User

Joined: Dec 2013
Posts: 568
Fuerth, DE
Wow, strategy control panels - awesome possibilities.

Re: Zorro 1.41 [Re: Sphin] #457063
12/22/15 18:50
12/22/15 18:50
Joined: Dec 2013
Posts: 568
Fuerth, DE
Sphin Offline
User
Sphin  Offline
User

Joined: Dec 2013
Posts: 568
Fuerth, DE
How to call the click-function?

function click(5,0) {
...
}

results in a syntax error.

Re: Zorro 1.41 [Re: Sphin] #457075
12/23/15 10:27
12/23/15 10:27
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline OP

Chief Engineer
jcl  Offline OP

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
A function definition does not allow numbers in the parameter list, you must have correct variable names between the parentheses. Example:

Code:
function click(int row,int col)
{
  sound("click.wav");
  string Text = panelGet(row,col);
  if(Text == "Buy") // toggle button between "Buy" and "Sell"
    panelSet(row,col,"Sell",0,0,0);
  else if(Text == "Sell")
    panelSet(row,col,"Buy",0,0,0);
  else if(Text == "Close All") // push button
    sellAllTrades();
  else if(Text == "Cancel")  // back to last saved state
    panelLoad("Log\\panel.csv");
}


Re: Zorro 1.41 [Re: jcl] #457082
12/23/15 16:55
12/23/15 16:55
Joined: Dec 2013
Posts: 568
Fuerth, DE
Sphin Offline
User
Sphin  Offline
User

Joined: Dec 2013
Posts: 568
Fuerth, DE
Thanks. In other words my trial must be written as:

Code:
function click(int row,int col) {
	if(row == 5 && col == 0) // the button's coordinates
		...
}


At least this way it works.

Re: Zorro 1.41 [Re: jcl] #457252
01/09/16 15:23
01/09/16 15:23
Joined: Sep 2014
Posts: 22
G
Giorm Offline
Newbie
Giorm  Offline
Newbie
G

Joined: Sep 2014
Posts: 22
When I try WFO I have a strange error that you can reproduce using also the Workshop6_1 file.
When you train the strategy it runs only over the first WFO cycle and so store only the first parameters (file workshop6_1_1.par): It doesn't train over the other cycles.

I attach the log file and here it is the error displayed.

...
Run Workshop6_1..
Assets...
Walk-Forward Test: Workshop6_1 portfolio 2004..2014
Read Workshop6_1_1.par
Error 062: Can't open Workshop6_1_2.par (rt:2)
Error 062: Can't open Workshop6_1_3.par (rt:2)
Error 062: Can't open Workshop6_1_4.par (rt:2)
Profit 795$ MI 15$ DD 394$ Capital 425$
Trades 557 Win 35% Avg +16.1p Bars 156
AR 42% PF 1.37 SR 0.79 UI 32% R2 0.20
Time 00:02:01

As usual i installed over c:\Zorro folder.
Could please explain if it's a bug or only my error?
thanks

Attached Files
Workshop6_1train.log.txt (110 downloads)
Workshop6_1train.log
Re: Zorro 1.41 [Re: Giorm] #457264
01/10/16 17:46
01/10/16 17:46
Joined: Sep 2014
Posts: 22
G
Giorm Offline
Newbie
Giorm  Offline
Newbie
G

Joined: Sep 2014
Posts: 22
solved!
it was the instruction:
NumCores = -2; // use multiple cores (Zorro S only)

I commented it and now WFO works perfectly

Re: Zorro 1.41 [Re: Giorm] #457271
01/11/16 13:13
01/11/16 13:13
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline OP

Chief Engineer
jcl  Offline OP

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Thanks for the info. It was indeed a bug in the beta version, since NumCores should be ignored in the free version. This will be fixed in the next beta, 1.41.8.

Re: Zorro 1.41 [Re: jcl] #457390
01/16/16 12:09
01/16/16 12:09
Joined: Sep 2014
Posts: 22
G
Giorm Offline
Newbie
Giorm  Offline
Newbie
G

Joined: Sep 2014
Posts: 22
When I train a strategy with many assets (50) I have a strange memory error.
The strategy is very simple and it trains regulary but when it start the test phase it immediatly shows an "Error 060: TIC memory fragmented or insufficient - please restart" dialog box.

I use Win 10 Ent 64bit, 16 GB RAM: so i think that it is not a memory insufficient problem.

I attach the screen shot of the error.

thanks

Attached Files MemoryError.png
Re: Zorro 1.41 [Re: Giorm] #457393
01/16/16 13:30
01/16/16 13:30
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline OP

Chief Engineer
jcl  Offline OP

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Your script uses too much memory for a single process, so split the backtest into several parts or test not all the assets at the same time. This has nothing to do with how much RAM you have in your PC.

If you think that your script should not have such a big memory footprint, send it to us and we'll look into it. But the error message is rather clear.

Page 1 of 2 1 2

Moderated by  Petra 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1