Download MetaTrader 5
To add comments, please log in or register
Articles have already helped many traders. Come and read them!
boopa26
79
boopa26 2016.11.04 21:22 

hello

mql4 question 

by default OrderSelect() is assigned value 0 so what switches OrderSelect() from 0 to 1?

documentation reads "if the function succeeds" but that is not enough information

thank you 

boopa26
79
boopa26 2016.11.04 21:24  
Fstrifoerr8:

:))))))

true and false 

0 or 1 does not answer question

thank you 

Fstrifoerr8
36
Fstrifoerr8 2016.11.04 21:25  
boopa26:

0 or 1 does not answer question

thank you 

0 means false, 1 means true. 2 variants

Or what do you mean? 

Alain Verleyen
Moderator
30213
Alain Verleyen 2016.11.04 21:32  
boopa26:

0 or 1 does not answer question

thank you 

What is the question ?
Keith Watford
Moderator
9496
Keith Watford 2016.11.04 21:33  

OrderSelect returns true or false, you should get into the habit of using true or false and not 1 or 0. It makes your code easier to read.

documentation reads "if the function succeeds" but that is not enough information


what more information do you need? If an order is selected it returns true. If not, it returns false.

Fernando Carreiro
2216
Fernando Carreiro 2016.11.04 21:36  
boopa26:

hello

mql4 question 

by default OrderSelect() is assigned value 0 so what switches OrderSelect() from 0 to 1?

documentation reads "if the function succeeds" but that is not enough information

thank you 

Both I and WHRoeder have answered that question before on your previous thread on the old MQL4 Forum:

OrderSelect function question (boopa26) - MQL4 forum - Page 3
OrderSelect function question (boopa26) - MQL4 forum - Page 3
  • www.mql5.com
OrderSelect function question (boopa26) - MQL4 forum - Page 3
boopa26
79
boopa26 2016.11.04 21:40  
Alain Verleyen:
What is the question ?
by default OrderSelect() is assigned value 0 so what switches OrderSelect() from 0 to 1?
Keith Watford
Moderator
9496
Keith Watford 2016.11.04 21:47  
boopa26:
by default OrderSelect() is assigned value 0 so what switches OrderSelect() from 0 to 1?

Your question has been answered.

If you are not capable of understanding the answer, then you are really not capable of writing code.

This is your last warning. If you continue to post, repeating inane questions, you will be banned

/
To add comments, please log in or register