[Archive!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Couldn't go anywhere without you - 2. - page 320
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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?