marc700: how do i change it so it gives me yesterday highest "close" not the highest price. and the same for the low. i want the lowest "close" not the lowest price.
You are reading from the D1. There is only one close per bar.
Stop with the D1 and use the current chart. Find yesterday's beginning of the day, end of the day, highest and lowest close.
Find bar of the same time one day ago - MQL4 programming forum #1 & #6 (2017)
See also Dealing with Time (Part 1): The Basics - MQL5 Articles (2021.10.01)
Dealing with Time (Part 2): The Functions - MQL5 Articles (2021.10.08)
MQL5 Programming Basics: Time - MQL5 Articles (2013.04.26)
thanks. will check it out .
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
how do i change it so it gives me yesterday highest "close" not the highest price. and the same for the low. i want the lowest "close" not the lowest price.