Im having a issue with my code with '<' open parenthesis expected

 
// Input parameters
input int myParameter1 = 5;   // an integer input parameter with default value 5
input double myParameter2 = 1.5; // a double input parameter with default value 1.5
input string myParameter3 = "hello"; // a string input parameter with default value "hello"

// Global variables
datetime LastAlertTime = 0; // Timestamp of last pop-up alert
double High[];
double Low[];

void OnTick()
{
    // check if minimum bars are loaded
    if (Bars < 3) return;
    
    datetime currentTime = TimeCurrent();
    int sizeHigh = ArraySize(High);
    int sizeLow = ArraySize(Low);
    
    // fill arrays with previous values
    ArraySetAsSeries(High, true);
    ArraySetAsSeries(Low, true);
    CopyHigh(_Symbol, _Period, 2, 3, High);
    CopyLow(_Symbol, _Period, 2, 3, Low);

    // Look for a new Pivot High
    double currentHigh = High[0];
    double leftHigh = High[1];
    double rightHigh = sizeHigh >= 3 ? High[2] : 0.0;

    if (currentHigh > leftHigh && currentHigh > rightHigh && currentTime > LastAlertTime)
    {
        string lineName = "PivotHigh_" + DoubleToString(currentHigh, _Digits);
        double linePrice = currentHigh;

        ObjectCreate(0, lineName, OBJ_HLINE, 0, currentTime, linePrice);
        Alert("New Pivot High at " + DoubleToString(currentHigh, _Digits));
        LastAlertTime = currentTime;
    }

    // Look for a new Pivot Low
    double currentLow = Low[0];
    double leftLow = Low[1];
    double rightLow = sizeLow >= 3 ? Low[2] : 0.0;

    if (currentLow < leftLow && currentLow < rightLow && currentTime > LastAlertTime)
    {
        string lineName = "PivotLow_" + DoubleToString(currentLow, _Digits);
        double linePrice = currentLow;

        ObjectCreate(0, lineName, OBJ_HLINE, 0, currentTime, linePrice);
        Alert("New Pivot Low at " + DoubleToString(currentLow, _Digits));
        LastAlertTime = currentTime;
    }
}

Hello im having some issues on line 14 column 14 after running it keeps giving me the same error of '<' open parenthesis expected. I have no clue how to fix this please help me ou 

 

In MQL5, there is no predefined variable called "Bars". It is a function in MQL5:

Bars

Returns the number of bars count in the history for a specified symbol and period

int  Bars(
   string           symbol_name,     // symbol name
   ENUM_TIMEFRAMES  timeframe        // period
   );
int  Bars(
   string           symbol_name,     // symbol name
   ENUM_TIMEFRAMES  timeframe,       // period
   datetime         start_time,      // start date and time
   datetime         stop_time        // end date and time
   );

In other words, your code at line 14 should look as follows ...

    // check if minimum bars are loaded
    if ( Bars( _Symbol, _Period ) < 3 ) return;
Documentation on MQL5: Timeseries and Indicators Access / Bars
Documentation on MQL5: Timeseries and Indicators Access / Bars
  • www.mql5.com
Bars - Timeseries and Indicators Access - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
Reason: