Errors, bugs, questions - page 1030
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
And I've also been getting barshift using the composter library. Aren't there any built-in tools in the Metatrader?
Your case is treated with a small slip.
Mine is worse. (By the way, your case without a Slip used to work, stopped a few weeks ago.)
Same scheme stopped working without creepy slips on other (not current) charts:
Code from here: https://www.mql5.com/ru/code/224Installed owls, see.
On current one I throw standard. AMA on chart, poke recalculation (at Sleep from 0 to 2350) - I drop to M1 and never come back. After a few seconds. AMA appears, and that's it.
I try to use flags (should I store two flags, current and m1? If I have already been using current one (flag) and now I am using m1 (flag 2), then...).
but i doubt it... Monday's ticks will come before I go back to the current one :)
upd yes, I have a hundred objects on the chart, and plus AMA, i.e., it's so heavy.
"We have to, Fedya. We have to."
(c) Shurik.
--
Such an error occurs, for example, if memory for the dynamic buffer is not allocated (in this case, under ActualBuffer). This code fragment doesn't make it clear.
Here.
And how to allocate memory for dynamic buffer?
I guess, when I find out, the question will disappear.
Here's all the code
Here.
How do you allocate memory for a dynamic buffer?
I guess once I find out, the question will disappear.
Here is all the code
Ps.
I read about Array Resize there...here is a copy
"After linking, a dynamic array buffer[]will be indexed as in regular arrays, even if the array to be linked is pre-set to be indexed as in timeseries. If you want to change the order of access to the elements of the indicator array, you should apply the ArraySetAsSeries() function after binding the array using the SetIndexBuffer() function. One should keep in mind that dynamic arrays that have been assigned as indicator buffers by the SetIndexBuffer() function should not be resized. For indicator buffers, all resizing operations are performed by the terminal's executing subsystem."
I'm confused.
Save configured profile to default File - Profiles - Default
Here.
How do you allocate memory for a dynamic buffer?
I guess once I find out, the question will disappear.
Here is the whole code
INDICATOR_DATA is the data to be drawn. This buffer (size) is monitored by the terminal (by rates_total, as I understand it).
Add buffers for intermediate calculations (INDICATOR_CALCULATIONS). For them set the size.
PS I have #include <TimeSeries.mqh> can "t open for some reason, does not compile.
Upd Monday must wait, something is wrong here.
INDICATOR_DATA is the data to be drawn. This buffer (size) is monitored by the terminal (by rates_total, as I understand).
Add buffers for intermediate calculations (INDICATOR_CALCULATIONS). For them set the size.
PS I have #include <TimeSeries.mqh> can "t open for some reason, doesn't compile.
Upd Monday must wait, something is wrong here.
I tried to change it, still got the same error. I will try to at least put values into a regular array, maybe something will work out.
Here is a simple one that works. In INDICATOR_DATA we write from INDICATOR_CALCULATIONS.
INDICATOR_DATA is the data to be drawn. This buffer (size) is monitored by the terminal (by rates_total, as I understand).
Add buffers for intermediate calculations (INDICATOR_CALCULATIONS). For them set the size.
PS I have #include <TimeSeries.mqh> can "t open for some reason, does not compile.
Upd Monday must wait, something is not right here.
Take here: https://www.mql5.com/ru/code/1008
I just found it, that's why I haven't felt the code yet. And it won't work yet - the public here is driving me to shop.
I think that everything will work, if the problem code will be moved from OnInit() to OnCalculate(). For a long time I've known feature of Five - not any code in OnInit works fine. It is likely that the real autodistribution of buffers registered through SetIndexBuffer() is guaranteed to end only after exit from OnInit(), because it must happen in the background (it is automatic, right?).
I've noticed that only 3 agents out of 8 can run at the same time when receiving tasks from the cloud.
Although if you run your test in parallel, the other agents are also enabled.
Is this the way it should be?