OrderClose

 

My fault line 38

I need to be shared

help me debugging

I am very grateful for that

I use the translation

https://translate.google.com/

Files:
 
https://www.mql5.com/en/job
 

Is there a question or something?

EDIT Initial post just had an attached file, but no text 

 
meta4: My fault line 38 help me debugging
   int Total = OrdersTotal();
   if ( Total < 2)
   int Ticket = 0;                                              <-- 36
     {
        int NewTicket = OrderTicket(OP_BUY);    ///su dung ham  <-- 38
  1. The bracketed code {} is not part of the IF. Remove line 36
  2. You must select your order (OrderSelect) via a loop (like in Totalorder) before using any of the other functions.
 
WHRoeder:
  1. Mã ngoặc {} không phải là một phần của IF . Loại bỏ dòng 36
  2. Bạn phải chọn đặt hàng của bạn ( OrderSelect ) thông qua một vòng lặp (như trong Totalorder ) trước khi sử dụng các chức năng khác.
 
meta4 :

I failed with code
I need help
I am very grateful for that



I am using translate
https: //translate.google.com
Reason: