There is value in both the zero and the first buffer. On M15 the fractals are now at 5m and 21m bars. This script
finds and prints everything correctly. Correspondingly, the Expert Advisor will find iCustom() working equally in the script and in the Expert Advisor.
But the Expert Advisor does not find it. And the log contains solid zeros.
Victor Nikolaev: Both the script and the advisor see the past. But neither can see the present. The indicator does not show it. That's why they can't see it.
I was too lazy to launch the tester. Yes, it does not update and consequently buffers are not filled.
Victor Nikolaev: Both the script and the advisor see the past. But neither can see the present. The indicator does not show it. That is why they cannot see it.
So, in my case it goes from 1001 bars in the past to the current bar in the present. But the values that are put in the buffer do not coincide with those that are drawn on the chart by the indicator separately, and those that are put in the buffer I cannot find at all on the chart.
Maxim Dobrovolskii: So, in my case it goes from 1001 bars in the past to the current bar in the present. However, the values that it puts in the buffer do not coincide with those that the indicator draws separately on the chart, and I cannot find any values that it puts in the buffer on the chart at all.
The indicator doesn't put anything in the buffer on new bars... You have to refresh the chart to see it correctly. I asked you to check what i equals. Although it can only be done tomorrow
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
There is value in both the zero and the first buffer. On M15 the fractals are now at 5m and 21m bars. This script
finds and prints everything correctly. Correspondingly, the Expert Advisor will find iCustom() working equally in the script and in the Expert Advisor.
indicator code.
Check what is i?
Just put Print(). That seems to be the problem.
I can't find anything in the EA, and the log is full of zeros.
Tomorrow I'll show you what the councillor sees too.
Check what is i?
Just put Print(). That seems to be the problem
The EA doesn't. First the indicator has to be fixed.
Why does the script see it?
Of course it is possible that it does not update, but this is not the reason we were talking about in the first place.
Why does the script see it?
Of course it is possible that it is not updating, but that is not the reason we are talking about in the first place.
Both the script and the advisor see the past. But neither can see the present. The indicator does not show it. That's why they can't see it.
Both the script and the advisor see the past. But neither can see the present. The indicator does not show it. That is why they cannot see it.
So, in my case it goes from 1001 bars in the past to the current bar in the present. However, the values that it puts in the buffer do not coincide with those that the indicator draws separately on the chart, and I cannot find any values that it puts in the buffer on the chart at all.