Download MetaTrader 5

Error 4055 ????

To add comments, please log in or register
Add the thread to Favorites. Track the changes even faster!
mohammadsk313
38
mohammadsk313 2016.10.25 17:07 

what is the 4055 Error in OrderSend in mql4???

please answer fast!!! 

mohammadsk313
38
mohammadsk313 2016.10.25 17:10  
int Ticket=OrderSend(Symbol(),OP_SELL,0.01,Bid,3,0,Bid-104.239*Point , "myea" , 12345 , 0 , Red);
Comment(GetLastError());

whroeder1
14519
whroeder1 2016.10.25 18:20  
mohammadsk313: what is the 4055 Error in OrderSend in mql4???

Comment(GetLastError());

  1. There is no error 4055 in OrderSend.
    4055ERR_CUSTOM_INDICATOR_ERROR Custom indicator error
  2. Do not look at GetLastError unless you have an error What are Function return values ? How do I use them ? - MQL4 forum and Common Errors in MQL4 Programs and How to Avoid Them - MQL4 Articles
honest_knave
Moderator
2216
honest_knave 2016.10.25 18:22  

If you want a fast answer, it is often quickest to do a google search.

You can't place orders from a custom indicator. You need to place orders using an expert advisor or a script. 

mohammadsk313
38
mohammadsk313 2016.10.26 17:14  
honest_knave:

If you want a fast answer, it is often quickest to do a google search.

You can't place orders from a custom indicator. You need to place orders using an expert advisor or a script. 

i transferred it from indicator to script !!
now the new error is 4109 !!!

can you help me?? 

peter.MT4Web
158
peter.MT4Web 2016.10.26 17:38  

OK - than check in the manual what 4109 means. It's faster than to write a question and wait for someone doing it for you.

mohammadsk313
38
mohammadsk313 2016.10.26 17:42  
eddie:

OK - than check in the manual what 4109 means. It's faster than to write a question and wait for someone doing it for you.


thanq  i could ok it!!!

Fernando Carreiro
2348
Fernando Carreiro 2016.10.26 17:44  
mohammadsk313:

i transferred it from indicator to script !!
now the new error is 4109 !!!

can you help me?? 

I suggest you first dedicate some time to Learning about MetaTrader and MQL first, by reading the documentation and tutorials as well as the example code in the Code Base.

Just like making a cake, you don't start with the frosting. You start by first learning how to mix the right ingredients in the correct order and with the right quantities, and then you still need to bake it at the right temperature for a certain amount of time.

So, don't just start copy/pasting things together without any knowledge of what you are doing. Learn it by doing your homework (research) first!

To add comments, please log in or register