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
but its not working,
no Problem thanks for the reply, i will continue trying
Post the code and maybe I will see why it is not working.
Post the code and maybe I will see why it is not working.
this also reduce back when some orders are closed
this also reduce back when some orders are closed
You have totally ignored what I have said!
I think that you are going about it the wrong way.
You should have a globalscope or static variable to count the trades and set it to 0 initially (or the value of OrdersTotal()).
Whenever a new trade is opened increase the counter by 1.
If OrdersTotal()==0 reset it to 0.
How does your code even remotely resemble the above?
You have totally ignored what I have said!
How does your code even remotely resemble the above?
i told you earlier on that i don't fully understand what you explained
i told you earlier on that i don't fully understand what you explained
Then I can't help you.
Then I can't help you.
No problem, thanks for your time.
Keith Watford:
You should have a globalscope or static variable to count the trades and set it to 0 initially (or the value of OrdersTotal()).
Whenever a new trade is opened increase the counter by 1.
If OrdersTotal()==0 reset it to 0.
He told you exactly what to do need to do, for your stated want.
MT4: Learn to code it.
MT5: Begin learning to code it.
If you don't learn MQL4/5, there is no common language for us to communicate. If we tell you what you need, you can't code it. If we give you the code, you don't know how to integrate it into your code.
or pay (Freelance) someone to code it. Top of every page is the link Code Base.
Hiring to write script - General - MQL5 programming forum 2019.08.21
We're not going to code it for you (although it could happen if you are lucky or the problem is interesting.) We are willing to help you when you post your attempt (using CODE button) and state the nature of your problem.
No free help 2017.04.21
He told you exactly what to do need to do, for your stated want.
MT4: Learn to code it.
MT5: Begin learning to code it.
If you don't learn MQL4/5, there is no common language for us to communicate. If we tell you what you need, you can't code it. If we give you the code, you don't know how to integrate it into your code.
or pay (Freelance) someone to code it. Top of every page is the link Code Base.
Hiring to write script - General - MQL5 programming forum 2019.08.21
We're not going to code it for you (although it could happen if you are lucky or the problem is interesting.) We are willing to help you when you post your attempt (using CODE button) and state the nature of your problem.
No free help 2017.04.21
to my level of understanding i did that, i declared Limit=0 as a global variable then i did a function "CountSell" to count all opened Sell Orders only.
Thanks