Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 568
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
There are 3 such cycles. Replaced them, the terminal froze.
I counted four:
Nothing hangs. There shouldn't be any overruns of the arrays. Except that the value on the zero bar is not calculated correctly in my opinion.
I counted four:
Nothing hangs. There shouldn't be any overruns outside the arrays. Except I think the value on the zero bar is not calculated correctly.
Thanks, it's ok. I do not need it on the zero bar. I want to get it from the first bar but the positions are opened chaotically
Why?
In the tester, on the visualization is this
the first kink, the beginning of the test, the indicator that has an error, builds a straight line when I throw it on the chart after the start of the test
we broke something)
Can you tell me how to put a "selection"of a graphical tool on the button in the Expert Advisor, so that by clicking on the button the tool icon would appear under the cursor and it would be possible to stretch it?
And it should already have the specified properties
In the tester, on the visualization is this
the first kink, the beginning of the test, the indicator that has an error, builds a straight line when I throw it on the chart after the start of the test
we broke something)
Right, it's a redrawing indicator that re-calculates the entire history for a specified number of bars on every tick. Very bad solution. Then you have to do it this way:
Unpleasant, of course, but it works.
why doesn't this construct work in variable declaration?
Because K is a variable. Its value at the time of compilation is unknown. To make it work, we have to make K a constant:
Right, because it's a redrawing indicator that recalculates all the history for a specified number of bars at every tick. This is a very bad solution. Then you have to do it this way:
Unpleasant, of course, but it works.
Thank you. I've spent so much time with you and it still draws 20(!) bars, maybe even more.
Shall we create a petition?
Have a lawbanning the distribution of indicators that re-draw more than three bars!
To be considered by the Parliament, we need to collect a total of 100k signatures in a year.
Thank you. All the time we've wasted and he's drawing 20(!) bars, maybe more, I didn't look any further.
Set a smaller value of cb, there will be less bars that will be re-drawn.
Shall we create a petition?
Have a lawbanning the distribution of indicators that re-draw more than three bars!
It will take only 100 000 signatures in a year to be considered by the Assembly.
)))
Can you tell me how to exclude/add a specific date to the EA?
For example, not to trade March 2, 2018. Tried different options, got confused with the dates.