Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 552 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, 11honza11, ccorrea, sakolin, rajesh7827
19046 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,725
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,725
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