class type expected

 

hi all

im new

this is two part of my program

void OnTick()

  {

      for(int i =OrdersTotal()-1,OrdersTotal() >=0, i ++)

        {

         

         OrderSelect(i,SELECT_BY_POS,MODE_TRADES);

         if( OrderType() == OP_BUY ||  OrderType() == OP_SELL)

           {

            Akhar();

           }

---------------------------------------------------------------------------------------------------

void Akhar()

  {

   for(int i = OrdersTotal(),OrdersTotal()>= 2,i--)

     {

      OrderSelect(OrdersTotal()- 2,SELECT_BY_POS,MODE_TRADES);

      OrderDelete(OrderTicket(),Orange);

     }


in both of them i recieve this ,,,,,,, 'OrdersTotal' - class type expected 

what i shoude to do


 
Please use the Code button to copy code into your post.
 
Please edit your post and use the code button (Alt+S) when pasting code.
EDIT your original post, please do not just post the code correctly in a new post.
Reason: