TicketSend Error 130? - Print Function

 

Hey Guys,

 

I have a problem. My code is calculating a Stop Loss. As you can see in the picture:
My Bid is 1.13844 and my min. stop is 1.13794. So at least exactly 50 points. But why I get a 130 Error? 

 


And how can I print more variables in one print methode?
In Java I just type System.out.Print("Hello"+a+"bla bla bla, next variable"+b); - How can I do this in MQL?

Greetings :) 

 
FrazeColder:

I have a problem. My code is calculating a Stop Loss. As you can see in the picture:
My Bid is 1.13844 and my min. stop is 1.13794. So at least exactly 50 points. But why I get a 130 Error? 

And how can I print more variables in one print methode?
  1. How should we know, we can't see your code, nor what your variables are. (I'd guess you opening a buy using Bid.)
  2. RTFM. Look at the example in Print - Common Functions - MQL4 Reference and/or PrintFormat - Common Functions - MQL4 Reference
 
Remember to check your broker's StopLevel (for new orders) and FreezeLevel (when modifying orders), which places limits on the minimum size or distance of the stops that can cause an 130 Error.
Reason: