Forex Tutorial
June 2, 2017

2 HR Time Period

Hello MT4 Guru’s

AS we dont have a 2HR time frame on meta trader, Can any of you guide/point me to an indicator or any resource of how I can achieve that. Also, can we plot moving averages on these 2HR time frames.

Your help is much appreciated.


Hi Rishi

As far as I can tell, ‘periodcon.mq4’ supplied by Samuri is actually a later version (v 1.5) of the same indicator in soso_betons’ link (v 1.4).

Version 1.5 apparently has a ‘time shift’ option. According to the notes:
“Added TimeShift option, can be used to shift hour timeframe to generate daily timeframe when your timezone is different from the server, default is zero.”

I haven’t tested this new option yet.

Anyway, here’s what you need to do:

1. Copy periodcon.mq4 to folder
c:\metatrader 4\<supplier folder name>\experts\indicators

2. Run MetaEditor (press F4 from MT4); then load periodcon.mq4 (press Ctrl-O) and compile it (press F5). Then exit MetaEditor (Press Alt-F4).

3. Back in MT4, open the Navigator (Ctrl-N), and drag ‘periodcon’ from the ‘Custom Indicators’ section onto your main chart (e.g. GBPUSD,H1).

4. Set the parameters to suit (e.g. to generate an H2 chart from the H1 chart, set the PeriodMultiplier to 2), and then before you click OK, go to the ‘Common’ tab and ensure that ‘Allow DLL imports’ is checked ON.

5. Run menu option File/Open Offline and select the GBPUSD,H2 chart.

The new H2 chart should update itself in real-time.

Hope this helps

I’ve just tried out the TimeShift option.

It looks like you can adjust this by simply editing the periodcon indicator in the base chart (H1 in my previous example), and after changing the TimeShift value, immediately you re-visit the synthetic (H2) chart, the bars are automatically shifted. Pretty cool.

For example, if TimeShift=0, then the 6:00 bar on the H2 chart aggregates the 6:00 and 7:00 candles from the H1 chart.

If you then set TimeShift=1, then the 6:00 bar on the H2 chart aggregates the 7:00 and 8:00 candles from the H1 chart.

And if you set TimeShift=-1, then the 6:00 bar on the H2 chart aggregates the 5:00 and 6:00 candles from the H1 chart.

And so forth.


 Hi Guys,

Know this thread has been quiet for awhile…
I’m trying to display shifted 1 hour and 4hour charts…

2 things
1) If i want to display 1hour charts with timeshift, I need to use an ‘original’ lets say, 30min and x2 that. Right?

2) I tried to get a 4hour offline chart w timeshift from a 1hour.
edited periodcon timeshift value… can’t quite get the 4hour to shift.

would appreciate abit of help if possible.

My current starting times display kinda crap charts.

Many thanks in advance