forex software

Create and Test Forex Strategies

forex software

Skip to forum content

Forex Software

Create and Test Forex Strategies

You are not logged in. Please login or register.


Forex Software → Express Generator → Bug: Validate then generate fails to continue

Pages 1

You must login or register to post a reply

RSS topic feed

Posts: 2

Topic: Bug: Validate then generate fails to continue

Hi Mr Popov
Possibly a bug and a minor inconvenience - if your settings file is set to validate then generate, but there are no collections in the input folder, the process stops.

input = ./collections/
validate_then_generate = true

Stops with message: There are no loaded collection records!

If you set validate then generate to false, but leave your input directory defined (not commented out), it still stops, saying there are no collections available.

input = ./collections/
validate_then_generate = false

Stops with message: There are no loaded collection records!

;;input = ./collections/
validate_then_generate = false

Continues to generate normally

Currently, you'd have to generate a collection first, then go back and change the settings file to include it in a validate then generate workflow.

If there are no collections available to re-validate, can it just continue to generate a new collection instead of stopping?

Thanks.

Re: Bug: Validate then generate fails to continue

> if your settings file is set to validate then generate, but there are no collections in the input folder, the process stops.

This is an expected behaviour because the option is validateTheGenerate

If there is no input collection, it would be generateThenGenerate smile

> If you set validate then generate to false, but leave your input directory defined (not commented out), it still stops, saying there are no collections available.

It will work if there are collections under the "./collection" folder. It will raise an error in the other case.
Express Generator uses the "--input" option to switch between the "Generate" and "Validate" modes.

> Currently, you'd have to generate a collection first, then go back and change the settings file to include it in a validate then generate workflow.

The best way to generate strategies with some options and to validate them with other options is to set your workflow in a ".cmd" file under windows or a  ".sh"  file under macOS or Linux.

Posts: 2

Pages 1

You must login or register to post a reply

Forex Software → Express Generator → Bug: Validate then generate fails to continue

Similar topics in this forum