How to get M1 data regardless of what time frame chart is in

 
I am simply trying to calculate an average of volume over the last 12 1 minute bars.  I also notice that when I change timeframes, any EAs I have running will stop (unint 3).  Anyway around this?  I'd like to keep the EA running as I change timeframes and keep the averages based on 1 minute info no matter what.
 

There are several built-in functions that access a different pair or chart timeframe...

Examples:

iHigh()

iMA()

All the functions that start with "i" fill this purpose