erro no code

 

I need to resolve the following errors in my code:

'Bid' - undeclared identifier AMERIC FIMATHE.mq5 41 37

'Bid' - undeclared identifier AMERIC FIMATHE.mq5 42 37


'OP_BUY' - undeclared identifier AMERIC FIMATHE.mq5 43 32

'Ask' - undeclared identifier AMERIC FIMATHE.mq5 43 50


'OrderSend' - wrong parameters count AMERIC FIMATHE.mq5 43 13


'Ask' - undeclared identifier AMERIC FIMATHE.mq5 51 37

'Ask' - undeclared identifier AMERIC FIMATHE.mq5 52 37


'OP_SELL' - undeclared identifier AMERIC FIMATHE.mq5 53 32

'Bid' - undeclared identifier AMERIC FIMATHE.mq5 53 51

'OrderSend' - wrong parameters count AMERIC FIMATHE.mq5 53 13



 if (fast_MA < slow_MA)

    {

        double SL = NormalizeDouble(Ask + stop_loss * _Point, _Digits);

        double TP = NormalizeDouble(Ask - take_profit * _Point, _Digits);

        if (OrderSend(_Symbol, OP_SELL, lot_size, Bid, 3, 0, SL, "Sell Order", 0, 0, clrRed) < 0)

        {

            Print("Erro ao enviar ordem de venda: ", GetLastError());

        }

    }

}




 
Ronald América:

I need to resolve the following errors in my code:

'Bid' - undeclared identifier AMERIC FIMATHE.mq5 41 37

'Bid' - undeclared identifier AMERIC FIMATHE.mq5 42 37


'OP_BUY' - undeclared identifier AMERIC FIMATHE.mq5 43 32

'Ask' - undeclared identifier AMERIC FIMATHE.mq5 43 50


'OrderSend' - wrong parameters count AMERIC FIMATHE.mq5 43 13


'Ask' - undeclared identifier AMERIC FIMATHE.mq5 51 37

'Ask' - undeclared identifier AMERIC FIMATHE.mq5 52 37


'OP_SELL' - undeclared identifier AMERIC FIMATHE.mq5 53 32

'Bid' - undeclared identifier AMERIC FIMATHE.mq5 53 51

'OrderSend' - wrong parameters count AMERIC FIMATHE.mq5 53 13



 if (fast_MA < slow_MA)

    {

        double SL = NormalizeDouble(Ask + stop_loss * _Point, _Digits);

        double TP = NormalizeDouble(Ask - take_profit * _Point, _Digits);

        if (OrderSend(_Symbol, OP_SELL, lot_size, Bid, 3, 0, SL, "Sell Order", 0, 0, clrRed) < 0)

        {

            Print("Erro ao enviar ordem de venda: ", GetLastError());

        }

    }

}




Siga as regras do forum e escreva usando o português. Segundo, contrate um freelancer já que não sabe programar.