timeframegetprice not working

Can someone help with this? When I run an exploration with a 5-minute periodicity the following code returns the high, low, and close from three days prior and not the day prior. I am trying to get the daily high, low, and close from the previous day.

dHigh = TimeFrameGetPrice("H",inDaily, -1);
dLow = TimeFrameGetPrice("L",inDaily, -1);
dClose = TimeFrameGetPrice("C",inDaily, -1);

You can be sure that these functions (as ANY AFL function) work perfectly.

To get better understanding of what is happening in your code and how functions work, use advice given here: How do I debug my formula?

Also please follow this advice: How to ask a good question

And see also: http://www.amibroker.com/kb/2006/03/19/how-does-the-daily-time-compression-work/

This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.