Vladimir Pastushak: I cannot find iBarsShiaft analogue in MQL5 . suggest ....
Actually the 2nd variant of Bars function is a direct analogue, but it has some glitches. To be more precise, they used to in the beginning of the year, maybe they were already fixed.
Rodrigo da Silva Boa: When this happens the indicator restarts ... and everything goes back to normal.
There is no need to restart anything. It is the rubbish in the buffers that needs to be cleaned in the indicator cycle. For example:
for(int i=limit; i>=0; i--) {
BufferPatternDN[i]=0; // без обнуления буферов мусор в них появляется постоянно
BufferPatternUP[i]=0;
BufferLevelDN[i]=EMPTY_VALUE;
BufferLevelUP[i]=EMPTY_VALUE;
// ... остальной код расчёта буферов// ...
} // конец цикла
You just need to add buffer zeroing to the beginning of the cycle, instead of restarting the indicator constantly when there is junk on the chart
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.
can't find the iBarsShiaft analogue in MQL5 . suggest ....
I did it a little differently, I think it's more reliable:
What do you think?
Dear colleagues, who can tell me what the problem is and why the indicator is crumbling (lots of extra arrows) after a while of operation?
I noticed it only on m1. After I re-trigger the TF, all is displayed normally.
Is the problem in the indicator or in the terminal and m1 quotes?
Dear colleagues, who can tell me what the problem is and why the indicator is crumbling (lots of extra arrows) after a while of operation?
I noticed it only on m1. After I re-trigger the TF, all is displayed normally.
The problem with the indicator or the terminal and the m1 quotes?
I cannot find iBarsShiaft analogue in MQL5 . suggest ....
Compiler thinks and thinks and silently dies with editor on this short program (32,64 bit, including different OS - same):
Somewhere a bug in the optimizer.By the way, when MetaEditor crashes, its state(open files, interface settings) is not saved.
When this happens the indicator restarts ... and everything goes back to normal.
There is no need to restart anything. It is the rubbish in the buffers that needs to be cleaned in the indicator cycle. For example:
You just need to add buffer zeroing to the beginning of the cycle, instead of restarting the indicator constantly when there is junk on the chart
How do I defeat this? Ubuntu in a virtual box, all programs go online without a proxy, direct connection everywhere
but the terminal keeps asking for a proxy.