Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1214
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
In order to keep historical data up-to-date "hot", you need to access this data every two minutes using any of the CopyXXX, iXXX functions, e.g. CopyTime(), iTime(), etc...
I don't know what volumes you don't get in the tester. There are real and tick volumes. Without the code can not answer the substance.
The code is the same that I downloaded earlier (slightly modified). Copying ticks:
Then there is a request for volumes. For example (simplified):
If you just attach it to a chart, then it's OK. If I attach it to a tester, then for some reason there are no volumes...
The code is the same as the one I posted earlier (slightly modified). Copying of ticks:
Next there is a request for volumes. For example (simplified):
If I just attach it to a chart, then it's OK. If it's in the Strategy Tester, then it doesn't have volumes...
Note on CopyTicks() function. About the flags.
Colleagues, please advise why I cannot put 2 or 3 ATR indicators with different timeframes on one chart at the same time?
Even changing the Offset to avoid visual overlaps, only one indicator works and is shown on the chart?
input int InpOffsetX = 10; // Offset X
input int InpOffsetY = 80;// Offset Y
More precisely, if I change TF, the second one appears, but the first one disappears; all three of them are showing alternately on different TFs, but not all together. The order cannot be traced.
Read the note on CopyTicks(). About the flags.
Where did I say I wasn't good at logic?
To make algorithms, I think, requires logic. And this is far from mathematics. And here I am not friendly with it - only the right reference material and help from those who are.
The programmer's job is not to solve complex tasks, but to get the computer to do them for him. But this may require solving other complex tasks, which the programmer obediently performs. :)
Your words from a previous post :" To make algorithms, it seems to me, you need logic. And this is far from mathematics. And I am not friends with it - only the right reference material and help of those who are".
No, it isn't. It's like this:
"To make algorithms, it seems to me, you need logic. And this is far from mathematics. And I am not friends with it - only the right reference material and help from those who are".
In terms of meaning the two sentences are next to each other. But you have found your meaning...
The programmer's job is not to solve complex tasks, but to get the computer to do them for him. But this may require solving other complex tasks, which the programmer obediently performs. :)
The task setter of course rules. But he has to be a programmer to stay on course))))
The problem setter rules, of course. But he has to be a programmer to stay on course))))
That's the thing, the task manager is also the executor. Although, not always.
Please advise. I have an EA that takes data (time) from an indicator and counts the difference in milliseconds between ticks.
I output it via Alert and get the following (see picture). As I see it, first I get the total number of milliseconds and then the difference in milliseconds between the last 4 ticks (between 1 and 2, 2 and 3, 3 and 4).
Why is it like this? I only need the values for the 4th tick.