MT5 Simple But annoying problem. Plz help

I have a little challenge. When I for example use OctaFX or MT5 from this website does my code works. But in IC Market does this code not work.

trade.PositionClose

Type of account is hedging. The code error is 4756

Also if I open an order with

#include<Trade\Trade.mqh>

trade.Buy(0.1)

I can not use default settings as ORDER_FILLING_RETURN but need to use ORDER_FILLING_IOC before it will open an order.

Anybody have any idea why this simple code not works with IC Market?