A bar starts with volume 1 and counts up, yes. There could be exceptions, but that is the rule.
Thank you phy, can you provide info when this exceptions occur? Do you have found some corelation to it or it just happens random? Thnx
Ok thankx it is not so important i'm just curious.
I use if( Volume[0]==1 ) {... new bar is present do some calcs } i had observed that this is sometimes triggered and sometimes not. That is why my question was born...To me it is logical that the count starts with 1 at the beginning of every bar but obviously there are times when the 1 is just overjumped. I wanted to ask if some relation exist when and why ....what could be the reason to jump to >1 is it broker feed or etc.
Don't know. I use change in the time of the current bar to signal a new bar.
![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
Can it happen that Volume[0]!=1 in a everytick mode? I mean is volume just add tick to count like 1,2,3,4, and so on or is it otherway?
Tnkx