Please tell me, I compiled the program, but I got an error "'\end_of_program' - unbalanced left parenthesis D:\Program Files\MetaTrader 4 - Alpari\experts\probota 4.mq4 (161, 4)".
I checked everything, everything is correct. What can this error be related to?
Please tell me, I compiled the program, but I got an error "'\end_of_program' - unbalanced left parenthesis D:\Program Files\MetaTrader 4 - Alpari\experts\probota 4.mq4 (161, 4)".
I checked everything, everything is correct. What can this error be related to?
For example, missing parenthesis in any condition... Either compile not the EA itself, but one of its inludes...
Please tell me, I compiled the program, but it generates error "'\end_of_program' - unbalanced left parenthesis D:\Program Files\MetaTrader 4 - Alpari\experts\probota 4.mq4 (161, 4)".
I've checked everything, everything is correct. What can this error be connected to?
The compiler has given you the line number (161) in parentheses, where there is a missing or extra bracket.
Double click on the error text and the compiler will show you the error location.
Weird, the code works. Maybe you put it in the wrong place?
It seems to be correct. I checked it several times. I showed Alert value 1 after the transaction. All days are normal, but why exactly 12.10.2010 it buys such a bunch - I can't understand.
Weird, the code works. Maybe you put it in the wrong place?
When I write this, I don't write Flag=0 in front of the condition, because then it will be updated every time before a transaction and will always be 0. If we don't specify a value, for example just int Flag, the program will assign it 0, right?
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Good evening all!
Please tell me, I compiled the program, but I got an error "'\end_of_program' - unbalanced left parenthesis D:\Program Files\MetaTrader 4 - Alpari\experts\probota 4.mq4 (161, 4)".
I checked everything, everything is correct. What can this error be related to?
Good evening all!
Please tell me, I compiled the program, but I got an error "'\end_of_program' - unbalanced left parenthesis D:\Program Files\MetaTrader 4 - Alpari\experts\probota 4.mq4 (161, 4)".
I checked everything, everything is correct. What can this error be related to?
For example, missing parenthesis in any condition... Either compile not the EA itself, but one of its inludes...
Good evening all!
Please tell me, I compiled the program, but it generates error "'\end_of_program' - unbalanced left parenthesis D:\Program Files\MetaTrader 4 - Alpari\experts\probota 4.mq4 (161, 4)".
I've checked everything, everything is correct. What can this error be connected to?
The compiler has given you the line number (161) in parentheses, where there is a missing or extra bracket.
Double click on the error text and the compiler will show you the error location.
Hello everyone!
Dear Professionals!!!
Look, please, what the problem is I don't understand. When I try to place one pending order, it puts out two.
while (Ticket2<0)
{
RefreshRates();
Ticket2=OrderSend(Symbol(),2,Lots_New*2,price,2,0,TP,"",MN); //1 order is pending Buy
Alert ("Error in Cycle",GetLastError()); Alert ("TIK2= ",Ticket2;)
Sleep(500);
}
someone can help to change the code so that the indicator does not have to be updated on each bar manually
For example, missing parenthesis in any condition... Or you don't compile the Expert Advisor itself, but one of its inludes...
Thanks, I will check it more carefully
The compiler will tell you the line number (161) where the bracket is missing or extra.
Double-click on the error text and the compiler will tell you where the error is.
Thanks for the tip!
It's not working. Still buys a bunch:( Please tell me what else can be done.
Strange, the code works. Maybe not attached there?
Weird, the code works. Maybe you put it in the wrong place?
Weird, the code works. Maybe you put it in the wrong place?
When I write this, I don't write Flag=0 in front of the condition, because then it will be updated every time before a transaction and will always be 0. If we don't specify a value, for example just int Flag, the program will assign it 0, right?