Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (TipmyPip, AndrewAMD, NewbieZorro), 16,655 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Invalid optimize parameters #453165
07/09/15 19:34
07/09/15 19:34
Joined: Jan 2014
Posts: 27
G
GameLight Offline OP
Newbie
GameLight  Offline OP
Newbie
G

Joined: Jan 2014
Posts: 27
When Zorro finishes the first walk I got the "Invalid optimize parameters" error without any number.
When I tested my strategy functions individually I got no error messages. I tried to replace one parameter by AI and this fixed the issue, but I removed the AI and inserted the parameter again and the error message returned.

After the error (when I click retry) message it show:
Selected p16[1] = 0 => -34028234663852886000000

I verified I'm not calling optimize conditionally and I'm not changing the BarPeriod value or even TimeFrame.

What this error message means?

What I found was:
Error 040: Inconsistent optimize calls

But I think that's not the error.

My script have nearly to 300 lines.

Re: Invalid optimize parameters [Re: GameLight] #453182
07/10/15 16:55
07/10/15 16:55
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
You need not check all 300 lines, only your optimize calls: a parameter must not be 0. It must be a positive number.

Re: Invalid optimize parameters [Re: jcl] #453185
07/10/15 18:43
07/10/15 18:43
Joined: Jan 2014
Posts: 27
G
GameLight Offline OP
Newbie
GameLight  Offline OP
Newbie
G

Joined: Jan 2014
Posts: 27
I checked but it seems well. A point is that I remove a single optimize parameter and it seems to work.

I remove the following:
delay = optimize(4, 1, 9, 1);

Re: Invalid optimize parameters [Re: GameLight] #453196
07/11/15 09:04
07/11/15 09:04
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
That optimize call looks ok. So the error must be elsewhere. I would not leave it at that, but look for the problem. If you can't find it, you can contact Support for help.


Moderated by  Petra 

Gamestudio download | 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