2 Hour Time Frame

 

Is there any way to apply a 2 hour time frame to an indicator? I don't need to display the results. I just need the indicator results

 

Everything is possible the this century

 
qjol:

Everything is possible the this century


Any idea where to find some sample code?
 
I'm no genius, you would have to tweek the tools you already have in MT4. One way is for you to write an indicator for 1H timeframe, and every two H1 candles, you have a single H2 candle. Write an algorithm, to take two H1 candles, take their highest, lowest, open and close values, and you have your H2 candle. The other way to do this, is to use MT5 with MQL5, they support all the timeframe i believe.
 
SquareRoot:

Any idea where to find some sample code?

https://www.mql5.com/en/code/7673
Reason: