MQL4 Predefined Variable: Low

Overview

  • double Low[]: A series array containing the lowest prices for each bar on the current chart.
  • Array elements are indexed in reverse order: 0 for the current (last) bar, Bars-1 for the oldest bar.
  • Usage

  • Used to access historical low prices for technical analysis and indicator calculations.
  • Related Functions

  • iLow(): Function to get the low price of a specific bar.
  • Example Snippet

    // Calculate minimums over a KPeriod
    i = Bars - KPeriod;
    if (counted_bars > KPeriod) i = Bars - counted_bars - 1;
    while (i >= 0) {
        double min = 1000000;
        k = i + KPeriod - 1;
        while (k >= i) {
            price = Low[k];
            if (min > price) min = price;
            k--;
        }
        LowesBuffer[i] = min;
        i--;
    }
    

    See Also

  • [High](/predefined/high)
  • [Open](/predefined/open)
  • [Bars](/predefined/bars)