Building Strategy with 2H timeframe

 

I have a strategy which needs to be built up with 2H timeframe. I have gone through Period_Converter_Optimizer indicator, but it just shows the chart on 2H timeframe.

How can I encode my strategy to work with this 2H timeframe, as the strategy tester doesn't allow me to select custom frames.

 
Write your code to span two hourly bars, or 8 15 minute bars, or 24 5 minute bars, or 120 1 minute bars.
 

phy thanks for the response. but I didn't get your point, on how do I get Moving Averages, and MACD for 2H timeframe, while working with 1H timeframe.

My strategy uses, 3,25 and 30 EMAs, in addition to the 12,26,9 MACD lines.

 

Build a series array of 2h values for use with iMAOnArray() .

You will need to code your own MACD, there is no iMacdOnArray() provided.

Reason: