TAG

indicator

  • November 7, 2025

Reading Indicator Values

Overview In MQL5, indicator outputs are stored in buffers. You access these buffers programmatically using a handle (e.g., from iMA(), iRSI()) and the CopyBuffer() function. This lets your scripts and Expert Advisors consume analytical data directly for decisions. What You Will Be Able to Do Code Example Execution Steps Key Point Indicator outputs live in buffers. Create a handle, call CopyBuffer() for the desired buffer index and bar range, then release the handle with IndicatorRelease(). Use ArraySetAsSeries(true) when you want buf[0] to represent the most recent bar. Next Section → Next: What Is an Expert Advisor

  • November 7, 2025

What Are Indicators

Overview In MQL5, an indicator analyzes market data and visualizes results on a chart or subwindow. Unlike Scripts and Expert Advisors, indicators do not send orders; they compute values and draw them as lines, histograms, or arrows so you can interpret trends and signals. You can use built-in indicators (e.g., Moving Average, RSI) or create custom ones with MQL5. What You Will Be Able to Do Code Example Execution Steps Key Point Indicators compute and draw values; they do not trade. They are often used as inputs to Expert Advisors or for visual decision support on charts. Next Section → Next: Reading Indicator Values