why on strategy tester it work well, - page 2

 

Thank you very much, I think MM may be the reason.

 
jjc:

Could I - politely - suggest that the repeated uses of lmgtfy.com on this forum are becoming excessive?

Yes because the REPEATED questions are excessive. If they had captured the error code (130) and searched here for that, they would NOT have had to post. The use of LMGTFY is approprate.

Just like Gordon's post

 

jxll:

ticket= OrderSend(Symbol(),OP_SELL,Lots,Bid,30,HighestPrice+200*Point,0,"",0,0,Red);

please let me know the reason.

Why don't YOU capture the REASON?
ticket= OrderSend(Symbol(),OP_SELL,Lots,Bid,30,HighestPrice+200*Point,0,"",0,0,Red);
if (ticket < 0) Alert("OrderSend failed: ", GetLastError());
Reason: