Tool
Control
object.control
Inputs
No typed inputs.
Outputs
A control sink — it draws an interactive object on the terminal chart and outputs nothing. Nothing can be wired from it.
Control puts something on the chart the viewer can press — a button, a number field, an image toggle, a mini-chart panel, or a marker on the time axis. It can show and hide plots, mute alerts, or clear drawn objects.
How it works
The control is created once when the indicator starts and stays put through history reloads, so its state survives a chart refresh. Pressing it does not change a single calculated number: the indicator's maths and its buffers are identical whether the control is pressed or not — only what is displayed or announced changes. Show/hide and mute stay on until pressed again; clear fires once per press. Screen-anchored modes are placed by a corner and pixel offsets; the two chart-anchored modes sit on a bar you pick by how far back it is.
Modes
Mode options
A labelled screen button.
A screen box holding an editable number.
A two-state picture pinned to a bar and price.
A two-state picture pinned to a chart corner.
A small chart panel. Not available on MT4.
A marker on the time axis.
Action options
Display only — pressing it changes nothing.
Hides the plots while pressed, and shows them again when released.
Stops alerts firing while pressed. The plots keep updating.
Removes the drawn objects once, each time it is pressed.
Corner options
Offsets measure from the chart's top-left corner.
Offsets measure from the chart's top-right corner.
Offsets measure from the chart's bottom-left corner.
Offsets measure from the chart's bottom-right corner.
Icon options
An open eye when released, a crossed-out eye when pressed.
A bell when released, a muted bell when pressed.
A play arrow when released, a pause sign when pressed.
A bin — the same picture in both states, for a one-shot press.
A gear — the same picture in both states.
Configuration
Which control to draw.
What pressing it does.
Which plot to show and hide (-1 for all of them).
Text shown on the control.
Chart corner the pixel offsets are measured from.
Horizontal offset from the corner, in pixels.
Vertical offset from the corner, in pixels.
Control width in pixels.
Control height in pixels.
How many bars back the control sits on the time axis (0 = the newest bar).
Price the image is pinned to; 0 pins it to the newest close.
Background color (#rrggbb).
Text color (#rrggbb).
Which pair of pictures the image control uses.
Stay pressed until pressed again.
Whether it starts pressed the first time.
Remember the state across chart reloads.
Number the field starts with.
Decimal places the number field shows.
Connects to
No direct tool-to-tool connections.