How can i hide errors

 

Hi,

It is my first post and happy day.

I would like hide some selected error (error 0 & error 1) for displaying some other errors only, for example: error 3, 130 and 131.

Anyone has a function for this ?

Tx for help.

 
sharteel:

I would like hide some selected error...

What do u mean? Hide where?

 
for example, i would like hide error 1 form log => 2010.02.10 10:56:55 2008.01.04 14:34 EA EURUSD,H1: OrderModify error 1
 
sharteel:
for example, i would like hide error 1 form log => 2010.02.10 10:56:55 2008.01.04 14:34 EA EURUSD,H1: OrderModify error 1

I don't think u can prevent Terminal from writing errors to it's own log, however u can make a custom log file and print to it only the errors u want. But can I ask what's the incentive? Why do u want to do that?

 

Would it not be a better idea to prevent the error from happening in the first place?


CB

 

Hi,

error type 1 is no error returned, but the result is unknown.

the error >1 is more important for backtesting, i think.

 
sharteel:

error type 1 is no error returned, but the result is unknown.

Yeah, but like CB said why not avoid this error in the first place? Error 1 usually means that u called OrderModify() with parameters that are identical to the parameters of the order u r trying to modify. Why not avoid this?

 

hi,

i think your are in the right way.

I check for fixing the OrderModify error 1.

tx u.

Reason: