- Keith Watford:@michalhrubes what part of edit your original post was unclear. Why didn't you?
Please edit your post anduse the code button (Alt+S) when pasting code
- michalhrubes:Everything works fine, only for retail trades moving to BE with a profit of PLUS does not work! I can't find a mistake, can anyone help me? Than1k you in advance! Below I enclose the entire AOS code
-
“Doesn't work” is meaningless — just like saying the car doesn't work. Doesn't start, won't go in gear, no electrical, missing the key, flat tires — meaningless.
How To Ask Questions The Smart Way. 2004
When asking about code - Help you with what? You haven't state a problem in concrete terms with understandable information.
- What the heck is AOS?
Define your acronyms before using them.
WATCH YOUR LANGUAGE! Use initialisms sparingly to prevent snafus
How To Ask Questions The Smart Way. 2004
Be precise and informative about your problem
-
I have deleted your post with the code.
Edit your original post. That is the first post that people will read.
I have deleted your post with the code.
Edit your original post. That is the first post that people will read.
fixed, thanks for the warning
Always loop the order queue back to front.
for(q=OrdersTotal()-1; q>=0; q--)
Always loop the order queue back to front.
Please lippmaje, thanks a lot for the answer, I just didn't understand exactly where to enter: for (q = OrdersTotal () - 1; q> = 0; q--)?
Will it be to the input count limiter or to the shift section on BE? What do I need to delete or replace for (q = OrdersTotal () - 1; q> = 0; q--) in my existing code?
Thank you!
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

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Good day, I would like to ask for advice. I am a complete beginner in programming and I wanted to program a simple EA for the exam, which enters stores only on the basis of SMA. I added the function of shifting SL to BE and I also defined the variable PLUS, which is used to add the gain to BE. Everything works fine, only for retail trades moving to BE with a profit of PLUS does not work! I can't find a mistake, can anyone help me? Thank you in advance! Below I enclose the entire EA code