WFOProfile Script crashes after Cycle 2

Posted By: hast29

WFOProfile Script crashes after Cycle 2 - 08/04/22 09:47

Hi, any help appreciated. I have tried to use the WFOProfile.c script delivered within Zorro 2.48. I have followed the article on https://financial-hacker.com/why-90-of-backtests-fail/#more-4373 and used the same trend following script trend.c. Out commented NumWFOCycles in trend.c and ran train of WFOProfile.c (both scripts in the attachment)

The script however crashed after second cycle with the mesage Error 062: Cant open WFOProfile_2.par (rt:2). Log file and a screenshot in the attachment.

I am struggling to resolve this, Any hint? Best regards ...

Attached File
trend.c  (3 downloads)
Attached File
WFOProfile.c  (3 downloads)
Attached File
WFOProfile_test.log  (0 downloads)
Attached File
WFOProfile_train.log  (0 downloads)
Attached picture Screenshot.JPG
Posted By: jcl

Re: WFOProfile Script crashes after Cycle 2 - 08/04/22 11:02

The error message tells that a certain .par file cannot be opened. This can be an access right conflict.

First, outcomment the NumCores line in trend.c. Maybe it is a conflict with a parallel running process.
Next, check if that file exists in the data folder. If so, delete it. Maybe it was locked by a previous process.

Then try again and post if the problem still persists.
Posted By: hast29

Re: WFOProfile Script crashes after Cycle 2 - 08/04/22 16:21

Hi JCL,

outcommenting NumCores did the job. Thank you for your prompt support. Cheers.
© 2024 lite-C Forums