Discussion of article "Timeseries in DoEasy library (part 42): Abstract indicator buffer object class" - page 2
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
An article for the sake of an article, like so many others.
This idea is in the air and has been voiced many times, nobody cares. The main thing is that the articles are interesting to MQ. The rest is not important.
I created an indicator based on a class. I also wrapped the arrays in a separate class dto.
I attach the indicator to the chart - everything is fine.
But during visual testing there are holes in the bars in the arrays.
The 0-th bar comes first, then the 1st bar, and then immediately the data of yesterday's bar.
As far as I understand, I am accessing the data array before it is ready?
Could you help me with advice? I attach the indicator code.
The indicator is simple - the channel is calculated, if the bar crosses the upper boundary, a buy signal is inserted into the indicator buffer.
If the bar crosses the lower boundary, a sell signal is inserted into a separate buffer.
What is the correct way to check that the indicator buffers are ready for calculations?