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'll say it again. Maybe I didn't express myself correctly. I haven't managed to get the multicurrency indicators to work correctly yet. I always have to re-initialize them. Although I have tried different variants. To eliminate the error of division by zero it is usually enough to check for error 4066. If there is one, we exit the function
Good evening.
I have a problem.
The Expert Advisor opens a position on every bar. Then it closes them when the total profit has been reached.
I need to remove pairwise appearing locks. I have done it this way (I.Kim's function):
It works. But this is not how I need it!
I need to delete locked positions only if there are two of them!
And only these two locks should be deleted (i.e. four open positions - two buy and two sell).
And all others (if any) should remain! (this is how it should be)!
I cannot figure out how to do it. Please, tell me how to do it!
Can it be written in a macive and compared there? Or in global...
Here, it might help.
https://www.mql5.com/ru/articles/1404/page2#4494
https://www.mql5.com/ru/articles/1390
in addition
https://www.mql5.com/ru/forum/118082
Help me understand why these results appear...
Help me understand why these results appear...
Help me understand why these results appear...
1. your history is not loaded
2. For this TF you need a test at least on all ticks
Here is the correct chart.
And in fact you are using the tester principle of ticks modelling. So there is no surprise at all.
What's not clear?
I thought the question was clear... Why is it possible to make such a grail in the tester, or there is an error in the Expert Advisor?
Because the tester simulates this way.
that's his speciality.
and you use it. You close and open on every tick. but the stoploop is less than the minimum tick movement at the checkpoints.
That's why the profit is drawn.
It has nothing in common with reality.
because that's how the tester simulates.
That's its peculiarity.
Thank you, I know it leaks on ticks, what exactly does the tester simulate and how, there are no indicators... Why does it need ticks?
You can put a stop at 50 pips (4 digits), it will also be a grail by the checkpoints....