Accessing 15 min Data in Hourly Backtesting

I am trying to use 15 mins data Moving Average in Hourly Backtesting.. I have used the below codes to access the 15 min Moving average , but on exploration the 15 min 150 SMA variable is same as the Hourly SMA Moving Average values. How do I solve this ?

TimeFrameSet( in15Minute ); 
CL15=C;
MA15=MA(CL15,150);
TimeFrameRestore(); // 

You need to read (at least) the orange boxes in http://www.amibroker.com/guide/h_timeframe.html Third orange box contains answer to your question.

3 Likes