//--- buffer initialisation method:bool Init( // returns false on error, true on successful executionint size, // ring buffer sizedouble vo lue=EMPTY_VALUE// value for filling empty buffer cells
);
Not critical, just for the sake of order.
Both in the description and in the code.
I really liked it. I compared it with my own implementation "head-on" - heaven and earth.
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.
Not critical, just for the sake of order.
Both in the description and in the code.
I really liked it. I compared it with my own implementation "head-on" - heaven and earth.
Simple and convenient. Thank you.
Not critical, just for the sake of order.
Both in the description and in the code.
I really liked it. I compared it with my own implementation "head-on" - heaven and earth.
Simple and convenient. Thank you.
Thanks, I saw it too. There are typos in some places, not only here. I'll fix it after the holidays.
Here is another variant of the ring buffer.
Lizar:
...Here is another variant of the ring buffer.
Yes, thanks, I've seen it, but there the buffer of constant size is 256, and I need much less, that's why I chose this class.
Maybe this one will come in handy someday.
Yes, thanks, I've seen it, but it has a constant buffer size of 256, and I need much less, that's why I chose this class.
Maybe this one will come in handy someday.
Thanks a lot! I "killed" the day on arrays until I remembered your research with the ring buffer:)
"May Success accompany you!!!"