Libraries: MT4Orders - page 7

 
fxsaber #:

Update please.

thank you so much! everything is ok now

Files:
MT4Orders2.png  87 kb
 
again errors please update to latest working 
Files:
Screenshot_1.png  117 kb
 
... Again, the archived page has an outdated version, for 2021.
 
Sergey Seriy #:
... Again, the archive page has an outdated version, for 2021.

They don't update the archives. You have to download by file.

 
2025.09 . 06 05 : 38 : 57.266   (BTCUSDm,M1)   Line = 1898
 2025.09 . 06 05 : 38 : 57.266   (BTCUSDm,M1)   :: PositionGetDouble ( POSITION_SL ) = 0.0
 2025.09 . 06 05 : 38 : 57.266   (BTCUSDm,M1)   :: PositionGetDouble ( POSITION_TP ) = 110564.51
 2025.09 . 06 05 : 38 : 57.266   (BTCUSDm,M1)   EqualSL = true
 2025.09 . 06 05 : 38 : 57.266   (BTCUSDm,M1)   EqualTP = false
 2025.09 . 06 05 : 38 : 57.266   (BTCUSDm,M1)   Request.position ? :: PositionSelectByTicket (Request.position) : :: PositionSelect (Request.symbol) = true请问
May I ask why this log is appearing? I have set take profit but stop loss remained unchanged.
 
hini #:
May I ask why this log is appearing? I have set the take profit but the stop loss remains unchanged.

As a result of MT5-OrderSend actions, you got a POSITION_TP and Request.tp mismatch within MT4ORDERS::OrderSend_MaxPause time.

The detailed log should have been below your quote.

 
fxsaber #:

As a result of MT5-OrderSend actions, you have received a POSITION_TP and Request.tp mismatch within MT4ORDERS::OrderSend_MaxPause time.

The detailed log should have been below your quote.

Did this happen because the server did not respond to the request in a timely manner?
My logs show: TRADE_RETCODE_DONE 10009.
Can I ignore this log entry?
Can I add a macro to block the output of these messages?
 

hini #:
Это произошло из-за того, что сервер не ответил на запрос своевременно?

Either rejected the modification.

My logs show: TRADE_RETCODE_DONE 10009.

This only indicates that the order was successfully sent to the server.

Is it possible to ignore this log entry?

I would ignore it.

Is it possible to add a macro to block the output of these messages?

Forum on trading, automated trading systems and testing trading strategies

Libraries: MT4Orders

fxsaber, 2019.04.29 15:19

If you need to keep the use of MT4Orders in your product unspoken, you can either cut the relevant pieces of the library source or put a universal stub
// Through macros we cut off any hints about the presence of MT4Orders.
#define Alert PrintTmp
#define Print PrintTmp
  void PrintTmp( string ) {}
  
  #include <MT4Orders.mqh> // https://www.mql5.com/en/code/16006
#undef  Print
#undef  Alert
 
fxsaber # :

Either rejected the modification.

This only indicates that the order was successfully sent to the server.

I would ignore it.

Okay, thank you!