Finding the Previous 24 Hours’ High and Low in MetaTrader
Summary
The document describes a MetaTrader example for retrieving the highest and lowest bar prices over a specified interval covering the previous 24 hours. It identifies keyboard shortcuts for searching for the high or low, and says the example uses the date-range form of the CopyHigh and CopyLow functions. The requested interval is represented by its start and stop times.
For display, the example places text on the chart with the searched price and draws a vertical line at the interval’s left boundary plus a horizontal line at the selected price. The description is about locating and visualizing historical bar extremes; it does not present a trading signal, execution rule, or market-performance evidence. It also leaves implementation details, such as handling incomplete data or selecting the interval boundaries, to the accompanying code rather than explaining them in depth.
Key ideas
- The example retrieves bar highs and lows for a chosen time interval using CopyHigh and CopyLow.
- The interval is specified by its start and stop times.
- Keyboard shortcuts initiate a search for the high or low price.
- Chart annotations show the interval boundary and the selected price; no strategy results are provided.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.