[Archive!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Couldn't go anywhere without you - 2. - page 203
![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
In terms of our usual sign int's, the process looks like this:
The count starts at zero, gets to 2^31-1 = 2147483647, or 0x7FFFFFFFF. The next number is 0x80000000, or -2^31 = -2147483648, i.e. it jumps to negative values (the highest bit becomes 1). Then counting is done by adding one until it reaches -1, i.e. 0xFFFFFFFFFFFF. The processor then sets the overflow flag and the counting cycle repeats from zero.
i.e. the counter returns a number between -2147483648 and 2147483647?
Question on isCloseLastPosByStop().
Will it check for the same closed order if there are no subsequent closed orders (i.e. this order will not be the last one)?
and in what order does GetTickCount() return?)
Question on isCloseLastPosByStop().
Will it check for the same closed order if there are no subsequent closed orders (i.e. this order will not be the last one)?
Or did you find a check for "order already checked once" somewhere in this function ? :)
It will always return the status of the last closed order. I.e. the answer is yes.
Cp
Cp