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
1 registered members (TipmyPip), 18,619 guests, and 5 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
Error043 wrong parameter #476096
01/26/19 12:31
01/26/19 12:31
Joined: Nov 2018
Posts: 55
G
gamadeus Offline OP
Junior Member
gamadeus  Offline OP
Junior Member
G

Joined: Nov 2018
Posts: 55
I often times get this strange "Error043: EUR/USD wrong parameter" when training a script, particularly during WFO cycles after training and on any asset.

It happens on completely unrelated intervals and sometimes goes away when I specify the asset in the script, sometimes not.

can somebody help me understand what that error is actually saying?
could it be caused by a corrupt history file?

Last edited by gamadeus; 01/26/19 12:32.
Re: Error043 wrong parameter [Re: gamadeus] #476100
01/26/19 14:08
01/26/19 14:08
Joined: Feb 2017
Posts: 1,806
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,806
Chicago
Error codes are explained in the manual.

If you are still confused, post your code.

Re: Error043 wrong parameter [Re: AndrewAMD] #476102
01/26/19 14:53
01/26/19 14:53
Joined: Nov 2018
Posts: 55
G
gamadeus Offline OP
Junior Member
gamadeus  Offline OP
Junior Member
G

Joined: Nov 2018
Posts: 55
yes thanks, I should learn to do my research first before impulsively posting

it seems that the error is caused by the fact that one parameter is set at -1 in the par file. therefore I get the error every time I test the par files are read (like test or retraining)

this occurs when a ratio like PF is optimized and there are no losing trades in the best parameter of the training set, which can happen for short train cycles

here is my solution for the objective function, in case anyone might stumble upon the same problem:
if(!NumLossTotal)
{
if(NumWinTotal) return NumWinTotal;
return 0;
}
else
return ThisPerformance.vWin/abs(ThisPerformance.vLoss);



Last edited by gamadeus; 01/26/19 15:18.

Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1