    

 ## On this page

  

 

 # setNumExpectedRuns

 Last update: 30.07.2026 

public [setNumExpectedRuns](set-num-expected-runs.md)(numRuns: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html))

lets the Data Collector how many runs are expected. If this function is called, a progress meter will be displayed in the Data Collector while the trade study is running.

#### Throws

[ModelCenterException](./../-model-center-exception/index.md)