Download MetaTrader 5

TicketSend Error 130? - Print Function

To add comments, please log in or register
Searching on MQL5.community is performed in all sections. Try it!
Jan
175
Jan 2016.04.04 14:34 

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 :) 

whroeder1
14532
whroeder1 2016.04.04 18:30  
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
Fernando Carreiro
2349
Fernando Carreiro 2016.04.05 12:11  
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.
To add comments, please log in or register