- opening
- modifying
- closing
- re quote
- disconnect
- logging
- expert/indicator loading
How about user's print ?
I can find these on logs ?
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 ?
No
It's an ea's a piece of a program
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 )
..............
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 !