![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
Thanks for everything, Massimo.
Thanks eevviill, but my skills are too complicated. I'm starting out with programming, they are self-taught and it's hard for me to understand some things.
Thanks for everything, Massimo.
For now the code that comes closest is the one who suggested I GumRai, but gives me the signal and sets the opening of the candle and not after 3 seconds.
Thanks for everything, Massimo.
but I'm not from the signal after three seconds that opened the candle
Better to write it first and not "I need every 3 seconds alert."
This should check at the first received tick that is at least 3 seconds after the bar open time
Note that if the bar has been open n seconds when the indicator is initialized and n is >3, it will be checked at that time. Also, obviously, it will not work with historical bars.
This should check at the first received tick that is at least 3 seconds after the bar open time
Note that if the bar has been open n seconds when the indicator is initialized and n is >3, it will be checked at that time. Also, obviously, it will not work with historical bars.
:))))
1)I would like to modify this code so that the alert, instead of appearing at the opening of the candle, detects the conditions after a few seconds.
2)but I'm not from the signal after three seconds that opened the candle
P.S. Do not use Time[0], use Bars
:))))
1)I would like to modify this code so that the alert, instead of appearing at the opening of the candle, detects the conditions after a few seconds.
2)but I'm not from the signal after three seconds that opened the candle
What is your point?
:))))
P.S. Do not use Time[0], use Bars
Why not? There is nothing wrong with using Time[0] to detect a new bar.
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.