Skip to content
All library documents

Using Chart Sliders to Adjust Technical Indicator Parameters

Article MQL5 code base

Summary

This MT4 tool lets traders change an indicator parameter by moving a visual marker across a row of chart labels. Each slider offers a sequence of values, and choosing a box applies its value to the configured parameter and refreshes the indicator. Up to four sliders can be displayed, each with configurable start and end values, increments, label, and color. The value range can include decimals and negative numbers, with up to fifty boxes per slider.

The included example uses Stochastic, but the description explains that other indicators require code edits to connect slider values to their parameters. The labels are positioned with chart coordinates and remain attached to the window. Updates occur only when a tick arrives, so the display may not respond immediately during inactive markets unless the chart is refreshed by another means. The text describes a configuration convenience rather than a trading method, and gives no evidence about the effect of changing settings on strategy performance.

Key ideas

  • A chart marker selects a parameter value from a row of labeled options.
  • The tool supports up to four sliders, each with a configurable range and increment.
  • Slider values can include decimal and negative values.
  • The example is configured for Stochastic, while other indicators require code changes.
  • Values update on incoming ticks, so inactive markets may require a chart refresh.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.