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
If they obviously refer tobuffer_num, the necessity of preliminary binding of the receiving array to the indicator buffer with one or another order number through SetIndexBuffer is obviously implied, probably, INDICATOR_CALCULATIONS. But,"if we want to copy some values of the indicator to another array (not the indicator buffer)", we cannot talk about anybuffer_num, because it's not indicator, and we haven't bound it to anything by definition.
You want to copy the values from some indicator. Every indicator has at least one indicator buffer with values. This is the index of this buffer(from where you want to copy). How can it be understood ambiguously?
However, it isn't strange that the programmer who studies the documentation on writing indicators doesn't distinguish immediately which indicator buffers are meant. The programmer writes his indicator (where one should not forget to associate this and that by assigning the appropriate indexes), and there is an opportunity to call handles of ready indicators that also have their own buffers with indexes. An experienced programmer understands the difference at a glance, while the rest cannot distinguish a difference at once.
Perhaps, these differences should be additionally emphasized to speed up mastering of the documentation, so to say, "to prick ears". The reference has the necessary and sufficient minimum, but there are people who are tired, stunned and especially gifted like me, who somehow do not get it right away.
Please advise, I have 7 buffers INDICATOR_DATA in my indicator,
How can I set or prohibit displaying buffers on the chart through, say, input bool, so the scale will not be scaled by a non-displayed buffer?
Thanks...
How can I set or prohibit displaying buffers on the chart through, say, an input bool, so that the scale is not scaled by a non-displayed buffer?
Have a look at the article Drawing Styles in MQL5, there is an example of an indicator that changes its appearance depending on an external parameter.
On the demo, the quotes sometimes freeze (there's a connection but no movement).
P.S. Please fix it, it's very annoying!
Here is the error - created a candle (eg EURUSD, H3, 9.11.11 0:00), started the next one, VOLUME value 0:00 - 7395, I saved the file. Ended candle 3:00, then I saved it and found out that the VOLUME for 0:00 has inexplicably changed - became 6055. This happens all the time - the value of VOLUME changes chaotically in previous candlesticks. It is clear that technical indicators with VOLUME cannot be used - their previous values will also drift back and forth.
The mess continues - I just downloaded EURUSD H4 12:00 candle (VOLUME=26004) and the value of VOLUME for 8:00 candle has changed (from 23567 to 24554). Let's see in 4 hours how the value for 12:00 changes.