Getting error again and again in compiling process of MT5

 
undeclared identifier    bot_2025_28_8.mq5    173    12
'j' - some operator expected    bot_2025_28_8.mq5    173    34
undeclared identifier    bot_2025_28_8.mq5    217    12
'j' - some operator expected    bot_2025_28_8.mq5    217    34
4 errors, 0 warnings        4    0
 
Farooq Ahmed:
undeclared identifier    bot_2025_28_8.mq5    173    12
'j' - some operator expected    bot_2025_28_8.mq5    173    34
undeclared identifier    bot_2025_28_8.mq5    217    12
'j' - some operator expected    bot_2025_28_8.mq5    217    34
4 errors, 0 warnings        4    0

Hi,

The errors you’re seeing are likely due to:

  1. Undeclared identifier: The variable j is used but not defined. Make sure to declare it before use, for example: int j;

or in a loop: for(int j = 0; j < n; j++)

  1. “Some operator expected”: This usually happens if a semicolon ; is missing or an expression is incomplete. Check the lines around 173 and 217 for syntax mistakes.

Make sure all variable names are correct and properly declared.

 
Farooq Ahmed:
undeclared identifier    bot_2025_28_8.mq5    173    12
'j' - some operator expected    bot_2025_28_8.mq5    173    34
undeclared identifier    bot_2025_28_8.mq5    217    12
'j' - some operator expected    bot_2025_28_8.mq5    217    34
4 errors, 0 warnings        4    0

without seeing your code we can only make guesses. This is a technical forum so you need to provide as much details as you can.

And until you post your code via the CODE S button in the msg editor, we can not see your screen, we cannot read your mind, AND our crystal balls are cracked and broken.