Errors, bugs, questions - page 1396
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 made MathRand in the example just to demonstrate how the scale works. In the original I had the calculation of numerical levels there using some trader's author's methodology. At the beginning we wanted to make them from 1 to 5, but even MT4 failed to achieve the adequate scale even with such values in the buffer with DRAW_NONE. After we made them negative and fixed the minimum at 0, the problem was solved. When porting the indicator to MT5 it appeared that this solution would not work either. I had to multiply by Point as Voldemar said.
By the way, I completely forgot. ))
Try it like this:
INDICATOR_CALCULATIONS >>>
Your example is crooked and you don't want to fix it. I will check it when you fix it.
I would fix it if it were code for real use. But this code was created just to demonstrate the problem, which it has successfully done. It's a waste of time to clean it up, because it won't affect the result.
By the way, I completely forgot. ))
Try it like this:
Tried both if indicator_plots=1 and withINDICATOR_CALCULATIONS
the second buffer reading just disappears from data window regardless of PlotIndexSetInteger(1, PLOT_SHOW_DATA, true);
You can try reporting the error to servicedesk and wait for a response there.
Tried both with indicator_plots=1 andINDICATOR_CALCULATIONS
the readings of the second buffer just disappear from the data window, regardless of specifying PlotIndexSetInteger(1, PLOT_SHOW_DATA, true);
But the scaling problem is solved in this way. So, you can create a request to servicedesk, that just add the ability to display such buffers in the data window.
And you can also try to do it like this:
//---
In OnInit() you need to add:
So you can create a request to servicedesk to simply add the ability to display such buffers in the data window.
I just described the problem, the logic of DRAW_NONE buffer values is by definition different from the logic of rendered values, they are not graphical values, and therefore scaling with them in mind is not logical. How they want to solve the problem, or whether they want to leave it as it is, is none of my business.
I just described the problem, the logic of the DRAW_NONE buffer values is by definition different from the logic of the rendered values, they are not graphical values and therefore scaling with them in mind is not logical. And how they want to solve this problem or want to leave it as it is is none of my business.
Isn't the option in the previous post appropriate? Just in case everything is left as it is. )
Isn't the option in the previous post appropriate? Just in case things remain as they are. )
Of course thanks for the advice, if I wanted to come up with some kind of crutch I'd come up with something too, but firstly we are comfortable looking at the values in the data window. Secondly, we should use this indicator buffer value in other indicators and Expert Advisors, and something tells me that if we make a buffer for calculations, it will be impossible to get its values through iCustom.
As a result, we have solved the problem by multiplying the second buffer value by Point
I just described the problem, the logic of the DRAW_NONE buffer values is by definition different from the logic of the rendered values, they are not graphical values and therefore scaling with them in mind is not logical. How they want to solve this problem, or whether they want to leave it as it is, is none of my business.
It all depends on where you want the values to be displayed. If you set the display to a separate window, it doesn't matter if the calculated buffer values are not visible. All values will still fall into this window. Consequently, the scale may break down.
Not logical - I agree, but unlikely to be fixed.
Of course thanks for the advice, if I wanted to make some crutch, I would think of something too, but first of all we are comfortable looking at values in the data window. And secondly, we need to use this indicator buffer value in other indicators and Expert Advisors, and something tells me that if we make a buffer for calculations, it will be impossible to get its values through iCustom.