Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1899

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
How to use this, can you show me?
Here's the task.
Here's the finished code, but the loop is a little scary
---
Again, there is a loop inside ArrayCopy() and maybe more than one. So the code will hardly become simpler and faster due to this replacement.
In this code, you should specify one array
from which index to write and from which to copy depends on the direction of the array shift. Thus, if we want index 0 to always contain fresh, new data, we should copy from 0 and write from 1. Thus, values in index 0 and 1 will be identical, and afterwards a fresh value will be copied to 0.
And I doubt very much that ArrayCopy() has the same loop inside as the user one. Thus, having some array with a certain size, it is shifted by 1 on every tick and then copied into the indicator buffer that is displayed as a line...
And here is the function that shows the breakdown on the screen
Can you please tell me how to make the screen show not 0 or 1 but 0 is "YES" 1 is "NO".
Thank you
Please tell me the breakdown function for the daily factals.
And here is the function that shows the breakdown on the screen
Can you please tell me how to make the screen show not 0 or 1 but 0 is "YES" 1 is "NO".
Thank you
Please tell me what the breakdown function of the daytime factal is.
And here is the function that shows the breakdown on the screen
Can you please tell me how to make the screen show not 0 or 1 but 0 is "YES" 1 is "NO".
Thank you
Something like this.
Something like that.
Thank you
In this code, you need to specify one array
Which index to write from and which index to copy depends on the array offset direction. I.e. if index 0 should always contain fresh, new data, then copy from 0 and write from 1. Thus, values in index 0 and 1 will be identical, and afterwards a fresh value will be copied to 0.
And I doubt very much that ArrayCopy() has the same loop inside as the user one. Thus, having some array with a certain size, it is shifted by 1 on every tick and then copied into the indicator buffer that is displayed as a line...
I will try.
---
All in all, my code works successfully, it's been more than an hour
What a brilliant idea! Who came up with it and what is its practical application? I doubt it is used exclusively for sliding window charts...
What a brilliant idea! Who came up with it and what is its practical application? I doubt it's used exclusively for sliding window charts...
True, it's not unreasonable to know how much data you can roll back. Because this circular buffer is "stepping on its own toes", due to its limited length...
Here's the best way to do it.
Checked it out, yes it's a good solution - I'm keeping it.
But I would still like to check ifArrayCopy works
---
I decided to do it this way, because it's not nice to tear off the graph: