RealTest User Guide
RealTest User Guide

 

 

Navigation: RealTest Script Language > Syntax Element Details >

OptShards

 

 

 

 

Category

Settings or Optimize Settings

Input

a number, 2 to 64 (default is 0; 0 or 1 = no sharding)

Description

For very large Combinatorial optimizations, OptShards divides the parameter space across multiple parallel RealTest processes (2 to 64). Each shard runs an independent slice of the largest active parameter's value list and writes its own RTR file; when all shards finish, RealTest merges them into a single combined RTR.

Notes

Sharding requires Combinatorial, Genetic, or Random mode (not Sequential), no Date Intervals / For Each Strategy / For Each Symbol / Walk-Forward, and more total tests than shards. If there is nothing meaningful to slice across, the optimization runs inline in a single process, so OptShards is safe to leave set in scripts that may or may not need it.

In Combinatorial mode, sharding can be combined with OptContinueResults to resume a stopped sharded run, provided the same shard count is used.

 

 

 

Copyright © 2020-2026 Systematic Solutions, LLC