Dear Mr. Rosh, Please tell me which evebts can be recorded on logs ?

 

Hi ! Mr. Rosh

Please tell me which events can be recorded on logs ?

Or somewhere I can find the article talk about this thing ?

Thank you in advance !

 
it is difficult to answer. I don't now all events that recorded in log. There are some of them:
  • opening
  • modifying
  • closing
  • re quote
  • disconnect
  • logging
  • expert/indicator loading
etc.
 

How about user's print ?

I can find these on logs ?

 
See the correspond log.
 

It's in my program:

.............

err=GetLastError();
Print("BB<2 OrderModify failed with error code=",err);

......................

But the logs were not printed these message

May be I should put some switch on ?

 
Is it a script or an indicator?
 

No

It's an ea's a piece of a program

 
Don't you see the printed messages during the back testing of your EA?
 
No, It's The live test
 
It's impossible. I'm sure that your EA is written incorrectly. Place code.
 

you are so kind and patient !

Thank you in advance !

The program like below

you can see a comment and a print instruction to do the same thing

the comment showed on screen but the print did not find in logs

By the way,It's the program you given to me

...........

if(SS>=2)
{
OrderSelect(OrderTicket(),SELECT_BY_TICKET, MODE_TRADES);
if(Ask+Rebound*Point<OrderStopLoss())
{
try=0;

while(try<=10)
{
result=OrderModify(OrderTicket(),OrderOpenPrice(),Ask+Rebound*Point,OrderTakeProfit(),0,Green);
if(! result)
{
err=GetLastError();

comment("SS>=2 OrderModify failed with error code=",err);

Print("SS>=2 OrderModify failed with error code=",err);

if (err!=0) break; //error is critically
try++;
Sleep(1000);
}//if(! result)
if (result==true)
{
OrderSelect(OrderTicket(),SELECT_BY_TICKET, MODE_TRADES);
Comment(" 止损价 ",OrderStopLoss()," 市场卖价 ",Ask);
KG=false;
}//if (result==true)

}//while(try<=10)
}//if(Ask+Rebound*Point<OrderStopLoss())
}//if(SS>=2 )

..............

原因: