SetOptionRange

Sets the valid range for a numeric option.

Syntax

SetOptionRange(name: string, lowValue: number, highValue: number): void

Parameters

  • name - A string containing the name of the option to set the range for.

  • lowValue - A number representing the minimum allowed value.

  • highValue - A number representing the maximum allowed value.

Return Value

This method does not return a value.

Description

The SetOptionRange method sets the valid range for a numeric option. This is used to define the minimum and maximum values that users can input for a numeric option in an indicator or strategy.

Example

Last updated