
StrategyParameterBool is a wrapper for the true/false (True/False) value, allowing the use of conditional statements in robot logic.
Location in the GitHub Repository.
Location in the project when opened on a PC:

The class looks as follows:

StrategyParameterBool - a public constructor with parameters. Initializes the initial state of the object. Takes the following data:
name - the name for the instance;
value - the starting value of the boolean variable held by the parameter;
tabName - the name of the tab where the parameter should be displayed;
StrategyParameterBool - a private parameterless constructor.
TabName - a public property of type string. Provides access to the name of the tab where the parameter will be displayed in the parameter window.
GetStringToSave - a public method. Returns a string with the parameter object settings for saving.
LoadParamFromString - a public method. Takes an array of strings with settings for the parameter and initializes the object's state.
Name - a public property of type string. Returns the displayed name of the parameter, which should be unique within the robot.
Type - a public property of type StrategyParameterType. Returns the value StrategyParameterType.Bool.
ValueBool - a public property of type bool. Gets or sets the current core value of the parameter. This is the property to access in the source code to determine what the user has selected at the moment.
ValueBoolDefault - a public property of type bool. Contains the default value set when creating the object.
ValueChange - a public event. Signals a change in the ValueBool value.
Example of usage.
You can check the technical examples inside the OsEngine project. For example, in BlockIndicatorsSample. This example shows how to block the drawing of indicators on the chart to reduce load:

Creating parameters in the constructor:

Using the previously created parameters in the logic for turning indicators on and off:

View in interfaces.
The Bool parameter appears in the robot's settings as a drop-down menu with options True/False:

This type of parameter cannot be optimized automatically. In the optimizer, it is assumed that the user will manually select the value before optimization begins in the Default column:

Successful algorithms!
If you have any difficulties or questions, please write to the support chat. Link