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.
so I try just for counts from First Bar of Currently Day and to future Period H1 (with below code)
int _cnt = MathMin( Bars, _mmin );
for ( int i = 0; i < _cnt; i++ ) {}
Example:
EURUSD have 23 Hours in a day. (Which one above code works for EURUSD)
FB have 06 Hours in a day. (Above code does not work for FB)
So, I try to get '23 for EURUSD' and '6 for FB' I hope you understand me.
All the best.
If you want to start from the first bar of the current day, use this
{
// the rest of the processing
}
I am sorry but i do not understand what you are trying to do.
(English is not my native language.)
Above code works perfect for EURUSD - #1 / screenshot
Above code does not work correctly for FB - #2 / screenshot
I would like to 'OBJ_VLINE' will be stop at the first hour (first hour can be - 00:00 - 01:00 - 02:00 - 03:00 - and so on) of the Day.
I hope this comment will help.
If you want to start from the first bar of the current day, use this
{
// the rest of the processing
}
You much clearly understand me.
You made my day. Thank you so much more.