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
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.