You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I've been a programmer since 1970 in high school.
It amazes me how arrogant the people are on the mt4 forum when responding to legitimate questions from new users.
My answer:
You didn't answer it. Where is your code for that? It had better include magic number filtering:
I've been a programmer since 1970 in high school. I use the internet constantly for tips and examples and have managed to stay current with programming styles, trends and techniques. It amazes me how arrogant the people are on the mt4 forum when responding to legitimate questions from new users. It frustrates me when I find a thread referring to the exact same question I have and some "know-it-all" posts a link and says read the manual. You know what? The manual is not helpful. Very few examples. I would make a suggestion to the self proclaimed "Guru's of MT4" to apply a little effort and type an answer. If you don't know, don't refer someone to the manual. Just remain quiet and let someone who knows be helpful and answer the question. It will result in a much better forum where people like me can find quick answers.
My answer:
No, there is not. The only way to limit the number of orders in MT is to keep track of them in your EA code using variable(s) that you set. There isn't a control setting or menu item to click in the platform to accomplish this.
Now how hard was that? How long would you need to read the manual to figure that out? The answer isn't in the manual. Just an absence of the function. My humble suggestion: Post answers to questions. Don't post links and call the person asking the question stupid or lazy. You are the lazy one.
In addition to WHRoeder answer, which I completely agree with, I would like to add the following :
I would make a suggestion to self proclaimed "MT4 newbie" to apply a little effort and make some researches before posting a question. If you see someone, who don't know, be treated harshly, just remain quiet and don't start to insult people who make this forum so useful.
I've been a programmer since 1970 in high school. I use the internet constantly for tips and examples and have managed to stay current with programming styles, trends and techniques. It amazes me how arrogant the people are on the mt4 forum when responding to legitimate questions from new users. It frustrates me when I find a thread referring to the exact same question I have and some "know-it-all" posts a link and says read the manual. You know what? The manual is not helpful. Very few examples. I would make a suggestion to the self proclaimed "Guru's of MT4" to apply a little effort and type an answer. If you don't know, don't refer someone to the manual. Just remain quiet and let someone who knows be helpful and answer the question. It will result in a much better forum where people like me can find quick answers.
My answer:
No, there is not. The only way to limit the number of orders in MT is to keep track of them in your EA code using variable(s) that you set. There isn't a control setting or menu item to click in the platform to accomplish this.
Now how hard was that? How long would you need to read the manual to figure that out? The answer isn't in the manual. Just an absence of the function. My humble suggestion: Post answers to questions. Don't post links and call the person asking the question stupid or lazy. You are the lazy one.
The question was not specific and was fully answered by Alain in the 2nd post
#define MAX_ORDERS 5
...
if(OrdersTotal()>=MAX_ORDERS)
{
// Don't add new orders
}
else
{
// You can add new orders
}
A more specific answer is not possible with such a vague question.