MT5, Bid parameter conversion not allowed?

MqlTick Price;
  
    step2 = true;
    Print("FastMA has crossed below SlowMA, Initiating Trade function");
    request.action = TRADE_ACTION_DEAL;
    request.deviation = 20;
    request.magic = 1337;
    request.symbol = _Symbol;
    request.volume = Lots;
    request.type = ORDER_TYPE_SELL;
    request.price = SymbolInfoTick(_Symbol,Price.bid);
    request.sl = (Price.bid - StopLoss);
    request.tp = (Price.bid + TakeProfit);
    OrderSend(request,result);

it doesnt like this line

"  request.price = SymbolInfoTick(_Symbol,Price.bid);"

any ideas?

says Bid parameter conversion not allowed

MqlTick Price;
SymbolInfoTick(_Symbol,Price);

//...................

request.price = Price.bid;

thanks a lot ! great help :blush:

You’re welcome. Regards.:blush: