How to mark a place in time
I'm wondering how I would note a place in time once discovered through a loop. I don't have any code prepared but my intention is to run a FOR loop looking for the place where the MACD value is higher than the current value.
Doing that much I understand, but I now want to look at price at that exact time and I'm not sure how to do that.
Would anyone mind sharing their ideas on how I might do this? I appreciate your help. Thank you in advance.
- For loop running problem, please help.
- Searching for a missing order!
- Don't tell me then that TA doesn't work
Perhaps you should read the manual. iBarShift to convert your "exact time" to a bar index. Use that to read bar values.
Timeseries and Indicators Access - MQL4 Reference
Timeseries and Indicators Access - MQL4 Reference