How to Deal with Bar0 ? - page 2

 

It's a special defined value in MQL5 to represent EMPTY (invalid) value.
Similar to INVALID_HANDLE, which is also a special defined value to identify an invalid handle.

You might want to have a look at https://www.mql5.com/en/docs/constants/namedconstants/typeconstants

Documentation on MQL5: Constants, Enumerations and Structures / Named Constants / Numerical Type Constants
Documentation on MQL5: Constants, Enumerations and Structures / Named Constants / Numerical Type Constants
  • www.mql5.com
Each simple numerical type is intended for a certain type of tasks and allows optimizing the operation of a mql5-program when used correctly. For a...
 
Chin Min Wan #: . The moment Lo0 and Hi0 come back to the correct prices, then

They are always correct prices. You've ignored #3.2