下载MetaTrader 5

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

要添加评论,请登录注册
1000名开发者参与了工作服务活动。注册吧!
gget
410
gget 2008.03.19 12:17 

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 !

Rashid Umarov
管理员
11837
Rashid Umarov 2008.03.19 13:31  
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.
gget
410
gget 2008.03.19 14:47  

How about user's print ?

I can find these on logs ?

Rashid Umarov
管理员
11837
Rashid Umarov 2008.03.19 15:18  
See the correspond log.
gget
410
gget 2008.03.19 15:53  

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 ?

Rashid Umarov
管理员
11837
Rashid Umarov 2008.03.19 15:58  
Is it a script or an indicator?
gget
410
gget 2008.03.19 16:42  

No

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

Rashid Umarov
管理员
11837
Rashid Umarov 2008.03.19 16:55  
Don't you see the printed messages during the back testing of your EA?
gget
410
gget 2008.03.19 18:04  
No, It's The live test
Rashid Umarov
管理员
11837
Rashid Umarov 2008.03.20 10:35  
It's impossible. I'm sure that your EA is written incorrectly. Place code.
gget
410
gget 2008.03.20 12:53  

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 )

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

12
要添加评论,请登录注册