API Control Panel
The control panel can accommodate indicator values, buttons, text.
Create control panel: var controlPane = ctx.CreateControlPane("Control", "Control", "My control"); The first "Control" element is the unique id of the element. The second "Control" element is the name of the panel The third element "My control" is the panel title, if it is not specified, the value will be taken from the panel title.
Add item to control panel:
"SMA" - item name "" - property name, if empty, the name of the last variable will be taken, in this case Period. ControlParameterType.NumericUpDown - the type of the item, in this case the number with the control. Period - OptimProperty script parameter
Example: Let's add an SMA indicator and a control panel. Display the indicator value on the control panel. When the value changes, the script will be recalculated and the SMA indicator will change.
Last updated