Skip to content
All library documents

Building a GUI for Comparing Technical Oscillators and Their Parameters

Article MQL5 articles

Summary

This article describes a MetaTrader 5 indicator that combines multiple built-in oscillators behind a chart-based graphical interface. The interface lets a trader switch indicators and adjust the selected indicator’s parameters while viewing the result, speeding up visual comparison and parameter exploration. The indicator can also run without its GUI and retains a compact set of universal inputs for calls through platform functions.

The design uses a base class and child classes to handle the different oscillator calculations and parameter types. The article inventories terminal oscillators and their buffers and inputs, then explains why a small shared parameter set and indicator-specific controls are useful. It emphasizes sensible defaults, including distinct period relationships for MACD and Stochastic, and discusses carrying parameter values between selected indicators. The document presents an implementation approach rather than performance tests or evidence that any oscillator produces profitable signals. Its main value is workflow and software design; visual comparison alone does not establish predictive power or trading edge.

Key ideas

  • A chart-based interface can make it faster to compare oscillators and change their parameters.
  • A base class and specialized child classes organize calculations across indicators with different inputs.
  • A small universal input set helps preserve compatibility with platform functions that accept custom indicators.
  • Default parameters should respect each oscillator’s conventions, and selected indicators may reuse prior settings.
  • The tool supports visual exploration but does not demonstrate that any indicator or parameter set is profitable.

Tags

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