forex software

Create and Test Forex Strategies

forex software

express-generator:generator-stop

Generator stop

Generator stop settings define when a run should finish.

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Generator stop           ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

; 0 means unlimited for all options.
max_calculated_strategies = 0
max_ascended_strategies   = 0
max_collected_strategies  = 0
max_working_minutes       = 3

What each limit controls

  • max_calculated_strategies limits the total calculated strategies.
  • max_ascended_strategies limits the accepted/ascended strategies.
  • max_collected_strategies limits strategies kept in the collection.
  • max_working_minutes limits wall-clock working time.

Manual control keys during a run

When running gen.js in an interactive terminal, you can use:

  • Ctrl + C to stop Generator gracefully (it finalizes and exports the current collection).
  • Ctrl + S to save the current collection immediately.
  • Ctrl + T to print top strategies.
  • Ctrl + X to save and then clear the current in-memory collection.

Example profiles

Fast iterative run:

max_calculated_strategies = 20000
max_ascended_strategies   = 0
max_collected_strategies  = 100
max_working_minutes       = 10

Time-limited run only:

max_calculated_strategies = 0
max_ascended_strategies   = 0
max_collected_strategies  = 0
max_working_minutes       = 180