Questions from Beginners MQL5 MT5 MetaTrader 5 - page 862

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
if(OrdersTotal() < OrdersMax) OrderSend(...); else Alert("The required number of orders opened");
Thank you !
Why does the last print display the price fromORDER_TYPE_BUY_STOP
and not fromORDER_TYPE_SELL_STOP
Where is the error ?
Why does the last print display the price fromORDER_TYPE_BUY_STOP
and not fromORDER_TYPE_SELL_STOP
Where is the mistake?
Use the styler (Ctrl + ,) and you will see your mistakes...
Use the styler (Ctrl + ,) and you will see your mistakes...
I don't have a compilation error.
This code should output in Print the price of buy and sell orders.
The buy order price is output correctly but the sell order outputs the buy order price!
I don't have a compile-time error.
This code should output in Print the price of buy and sell orders.
The buy order price is correct, but the sell order price is correct!
At this point the advice is the same: use the styler - you will visually see the errors.
... and only then will I show you where your error is.For the moment, the advice remains the same: use a styliser - you will see the errors visually.
... And only after that I will show you where your error is.Here it is with the styler. But I can't see the error. That's why I ask in the subject
Questions from Beginners in MQL5
Here's the one with the stylizer. But I don't see the error. That's why I am asking in this thread
Questions from Beginners in MQL5
The styler has clearly shown that your code contains problems with closing parentheses. You need to fix it.
Shit, can anyone here help?
If the styler clearly showed you something - couldn't you tell me where the bracket should be?
Because it didn't clearly show me anything.
I need the price of the nearest buy stop and the nearest sell stop. How can I make the code differently?
Shit, can anyone here help?
If the styler clearly showed you something - couldn't you tell me where the bracket should be?
Because it didn't clearly show me anything.
I need the price of the nearest buy stop and the nearest sell stop. How can I make the code differently?
I have highlighted the brackets that are missing pairs:
Where exactly to put the pairs depends on the logic of your code.