omissamf: Hi guys,you aregreat!!! I do not knowhow to thank youfor your cooperation. The codepostedeevviillworks very well, that's whatI meant. TheGumRaicode insteadmakesrepaintandgivethe signalwhenevertheRSIcrossesthe30/70levels. I insert theworking codeaccording toeevviillsuggestions,hoping that it willserve somemore.
Helloeevviill,just a curiosity:whatdid you meanwith: P.S.Do not useTime[0],useBars? It ispossibleto change thecoodicewho postedGumRai? that's just mycuriosity,becauseI'mtrying tounderstand and studythe language. Thanks,Max.
omissamf: Helloeevviill,just a curiosity:whatdid you meanwith: P.S.Do not useTime[0],useBars? It ispossibleto change thecoodicewho postedGumRai? that's just mycuriosity,becauseI'mtrying tounderstand and studythe language. Thanks,Max.
I have edited the last 2 posts. Please stop the bickering, it achieves nothing.
I will continue to use Time[0] to detect a new bar as I have never had any problems with it.
To be honest, I don't know what happens when Bars reaches the maximum in history, so I will not use Bars. If eevviil prefers to use Bars, it is up to him. WHRoeder is an extremely experienced and valuable contributor to this forum and anything that he says should not be dismissed lightly.
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.
What is your point?
Why not? There is nothing wrong with using Time[0] to detect a new bar.
My code is ok. He wants 3 second after start of bar.
Sometimes wnen history updates Time[0] will not work.
https://forum.mql4.com/ru/65066/page6#1016370
(rus)
Hi guys, you are great !!!
I do not know how to thank you for your cooperation.
The code posted eevviill works very well, that's what I meant.
The GumRai code instead makes repaint and give the signal whenever the RSI crosses the 30/70 levels.
I insert the working code according to eevviill suggestions, hoping that it will serve some more.
Thanks for everything, Massimo.
P.S. Do not use Time [0], use Bars?
It is possible to change the coodice who posted GumRai?
that's just my curiosity, because I'm trying to understand and study the language.
Thanks, Max.
Hello eevviill, just a curiosity: what did you mean with:
P.S. Do not use Time [0], use Bars?
It is possible to change the coodice who posted GumRai?
that's just my curiosity, because I'm trying to understand and study the language.
Thanks, Max.
In my code Bars. You can chek it.
To detect new bar use only Bars.
Do not use bars, can change on a refresh (new downloaded history.) Do not use volume (you can miss ticks) Always use time.
And? Bars stays the same?
You are wrong.
The GumRai code instead makes repaint and give the signal whenever the RSI crosses the 30/70 levels.
You are referring to this example that I posted?
I don't believe that this will cause any repainting or additional signals
It must be your code. Possibly you placed code to check conditions and alert outside of the
block.
And? Bars stays the same?
You are wrong.
If new history is received, bars changes. However that does not indicate to the EA that a new bar has formed.
If new history is received, bars changes. However that does not indicate to the EA that a new bar has formed.
If history of chart will be updated and number of bars incrases, than Bars will not changes????
I have edited the last 2 posts. Please stop the bickering, it achieves nothing.
I will continue to use Time[0] to detect a new bar as I have never had any problems with it.
To be honest, I don't know what happens when Bars reaches the maximum in history, so I will not use Bars. If eevviil prefers to use Bars, it is up to him. WHRoeder is an extremely experienced and valuable contributor to this forum and anything that he says should not be dismissed lightly.