Disliked{quote} Try this. I think this will fix the problem. I borrowed this hack from Steve Hopwoods ForceLoadHistoricalData.mq4. If anyone knows a more elegant way to doe this please don't hesitate to let me know. I am always ready to learn and improve my skills. Best Regards, dlouw {file}
{file}Ignored
Thank you for the valiant effort, but this didn't fix it. I don't think the issue is the availability of historical data, but rather the lack of the indicator sensing when the end of the candle on the selected time frame occurs. I run M30 charts, and I have your MTF ASH on it twice, once for M15 and once for M5. I was watching the M5 MTF ASH on the M30 chart when the five minute mark on the clock occurs. The indi does "something" but I don't know what. What I do know that it no longer reflects the proper ASH for M5. By dropping down to M5 time frame and then back up to the M30 time frame, the MTF ASH updates to the correct shape. Not being a coder, I have no idea how to tell the indi that 5 minutes or 15 minutes or whatever MTF time frame has occurred.
Please don't trouble yourself further with this except if you want to do it for a personal coding challenge. I appreaciate what you've do so far very much but don't trouble yourself further unless you simply want to for your own sake.
Thanks
Dial
sxaxlxvxaxtxixoxnxbxyxgxrxaxcxexdxoxtxoxrxgx