• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • User/Email: Password:
  • 7:11am
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 7:11am
Sister Sites
  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

Time Frame Vs Personality, Which to choose as Main Time Frame? Who Are You? 10 replies

Multiple Time Frame Trading: In a divergence, which frame dictates? 6 replies

Looking for indicator to show 3 high time frame candles in current chart 2 replies

Time frame and Enter/Exit, Time frame and S/L, T/P relationships. 91 replies

Question on Lower Time Frame Indicators Vs. Longer Time Frame 7 replies

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe
  • 11
Attachments: I'm looking for automatic time frame switcher
Exit Attachments
Tags: I'm looking for automatic time frame switcher
Cancel

I'm looking for automatic time frame switcher

  • Last Post
  •  
  • Page 1 2
  • Page 1 2
  •  
  • Post #1
  • Quote
  • First Post: Nov 6, 2010 8:00pm Nov 6, 2010 8:00pm
  •  Yoenes
  • | Joined Jan 2010 | Status: Member | 256 Posts
Hello All

Can some one please code an indicator that can automaticly switch from 1M to the 1H time frame every 2 minuts or so.?

Or if some one know where i can download this indicator it will be fine to show me so that i can download it Please?

Thanks,
Yoenes
  • Post #2
  • Quote
  • Nov 6, 2010 9:17pm Nov 6, 2010 9:17pm
  •  Pvj
  • | Joined May 2009 | Status: Member | 55 Posts
I don't think that this can be done in MT4 (someone correct me if I'm wrong)

I use the free open-source utility 'AutoHotKey' for this type of function on all my software packages.

You can find it at www.autohotkey.com

To switch an MT4 chart to 1Hr (select the chart) use the keystrokes:
'alt' 'c' 'p' 'h'
To switch an MT4 chart to 1Min (select the chart) use the keystrokes:
'alt' 'c' 'p' '1'

Just tell AutoHotKey to use the above keystrokes.
AutoHotKey can learn from you doing the keystrokes - it's very easy to use.
- you can create hotkeys to do the function manually or
- run it on a timer automatically

All AutoHotKey does is automate your own keystrokes
(and you can add some functions to it)

Try the above keystrokes on an MT4 chart yourself to see how it would work.

There is a little bit of fiddling with this but it opens up a whole new world of automation and functionality for all your software packages.

Hope this helps

PS - you might also want to add the 'end' keystroke to get to the right side of the 1min chart when coming back from the 1Hr chart
 
 
  • Post #3
  • Quote
  • Nov 7, 2010 5:27am Nov 7, 2010 5:27am
  •  Yoenes
  • | Joined Jan 2010 | Status: Member | 256 Posts
[quote=Pvj;4152450]I don't think that this can be done in MT4 (someone correct me if I'm wrong)

I use the free open-source utility 'AutoHotKey' for this type of function on all my software packages.

You can find it at www.autohotkey.com

To switch an MT4 chart to 1Hr (select the chart) use the keystrokes:
'alt' 'c' 'p' 'h'
To switch an MT4 chart to 1Min (select the chart) use the keystrokes:
'alt' 'c' 'p' '1'

Just tell AutoHotKey to use the above keystrokes.
AutoHotKey can learn from you doing the keystrokes - it's very easy to use.
- you can create hotkeys to do the function manually or
- run it on a timer automatically

All AutoHotKey does is automate your own keystrokes
(and you can add some functions to it)

Try the above keystrokes on an MT4 chart yourself to see how it would work.

There is a little bit of fiddling with this but it opens up a whole new world of automation and functionality for all your software packages.

Hope this helps

Hello Pvj
first i like to say thanks for replay

my Idea is to hang an one screen and that the screen change from 1M to 5M then to 15M and then 30M and then to the 1H and stays only fo 1Minuter or 2 minutes on each time frame.

can i find some think that do that for me on that site ?

Thanks,
Yoenes
 
 
  • Post #4
  • Quote
  • Nov 7, 2010 7:16am Nov 7, 2010 7:16am
  •  Pvj
  • | Joined May 2009 | Status: Member | 55 Posts
Hi - yes it can easily do this.

You just need to tell autohotkey to send the appropriate keystroke sequences.
- try the keystrokes yourself in MT4 on a chart and you'll see it work.
- just press, in MT4, each of these keys separately 'ALT' then 'C' then 'P' then '1' then 'END' (this changes it to a 1min chart).

You can use the autohotkey 'macro recorder' to put all your own keystrokes together in a macro - then put it all in a loop with a 'wait' period between each MT4 period change string.

If you can't do very basic programming - I'd ask someone on the autohotkey forum to do it for you - it's very easy, I'm sure they would.
- just tell them you want a macro to perform the following:

++++++++++++++++++++++++++++++++++++++++++++
LOOP
WAIT 2 MINS WHILE TESTING FOR A 'PAUSE' KEYSTROKE
SENDKEYS 'ALT' 'C' 'P' '1' 'END'
WAIT 2 MINS WHILE TESTING FOR A 'PAUSE' KEYSTROKE
SENDKEYS 'ALT' 'C' 'P' '5' 'END'
WAIT 2 MINS WHILE TESTING FOR A 'PAUSE' KEYSTROKE
SENDKEYS 'ALT' 'C' 'P' 'DOWNARROW' 'DOWNARROW' 'END'
WAIT 2 MINS WHILE TESTING FOR A 'PAUSE' KEYSTROKE
SENDKEYS 'ALT' 'C' 'P' '3' 'END'
WAIT 2 MINS WHILE TESTING FOR A 'PAUSE' KEYSTROKE
SENDKEYS 'ALT' 'C' 'P' 'H' 'END'
RETURN
++++++++++++++++++++++++++++++++++++++++++++

from the above
1 = 1min chart
5 = 5min chart
'DOWNARROW' 'DOWNARROW' = 15min chart (MT4 doesn't have a shortcut key for this one)
3 = 30min chart
H = hour chart
you'll also see that I included a "TESTING FOR A 'PAUSE' KEYSTROKE" after each period change - in case you want to stop and do some analysis on that period setting - if you want.
you will have to tell them what key you want to use for the 'PAUSE'

Sorry I cant do the autohotkey macro for you - I'm out of the country at the moment and not at my computer.
Maybe I could in a few weeks when I get back - but I'm not that regular on this forum. Sorry.

Good Luck - it is VERY easy and I've used similar autohotkey macros on other software products (MetaStock etc.) - it works perfectly.
 
 
  • Post #5
  • Quote
  • Nov 7, 2010 9:42am Nov 7, 2010 9:42am
  •  sangmane
  • Joined Apr 2009 | Status: MT4 Programmer | 758 Posts
Quoting Yoenes
Disliked
Hello All

Can some one please code an indicator that can automaticly switch from 1M to the 1H time frame every 2 minuts or so.?

Or if some one know where i can download this indicator it will be fine to show me so that i can download it Please?

Thanks,
Yoenes
Ignored
Hi Yoenoes,
I've just made a simple TF switcher.mq4 (M1>M5>M15>M30>H1>M1). This TFSwitcher is an EA, put in experts folder. The code adopted from zznbrm's script named ChgTF-All.mq4

hth
Attached File(s)
File Type: mq4 TFSwitcher.mq4   < 1 KB | 683 downloads
 
 
  • Post #6
  • Quote
  • Nov 7, 2010 11:44am Nov 7, 2010 11:44am
  •  Yoenes
  • | Joined Jan 2010 | Status: Member | 256 Posts
Quoting sangmane
Disliked
Hi Yoenoes,
I've just made a simple TF switcher.mq4 (M1>M5>M15>M30>H1>M1). This TFSwitcher is an EA, put in experts folder. The code adopted from zznbrm's script named ChgTF-All.mq4

hth
Ignored
Hello PVJ and sangmane

First i like to say thanks for the replay.

PVJ thanks this will be a site that i in the future will look for because i get now some think from sangmane.

Sangmane thank you very much. this is wath i m looking for .

Thanks again,
Yoenes
 
 
  • Post #7
  • Quote
  • Nov 7, 2010 5:30pm Nov 7, 2010 5:30pm
  •  Yoenes
  • | Joined Jan 2010 | Status: Member | 256 Posts
Quoting sangmane
Disliked
Hi Yoenoes,
I've just made a simple TF switcher.mq4 (M1>M5>M15>M30>H1>M1). This TFSwitcher is an EA, put in experts folder. The code adopted from zznbrm's script named ChgTF-All.mq4

hth
Ignored
Hello Sangmane

Sory that i have to ask it but can you please add the 4H to it?

Thanks,
Yoenes
 
 
  • Post #8
  • Quote
  • Nov 7, 2010 8:20pm Nov 7, 2010 8:20pm
  •  sangmane
  • Joined Apr 2009 | Status: MT4 Programmer | 758 Posts
hi Yoenes,

I added one input named MaxTF. Set it to 240 if you want TF switch back to M1 when after TF = H4. Dailiy = 1440, Weekly = 10080, Monthly = 43200
Attached File(s)
File Type: mq4 TFSwitcher.mq4   1 KB | 484 downloads
 
 
  • Post #9
  • Quote
  • Nov 8, 2010 6:18am Nov 8, 2010 6:18am
  •  Yoenes
  • | Joined Jan 2010 | Status: Member | 256 Posts
Quoting sangmane
Disliked
hi Yoenes,

I added one input named MaxTF. Set it to 240 if you want TF switch back to M1 when after TF = H4. Dailiy = 1440, Weekly = 10080, Monthly = 43200
Ignored


Thanks sangmane this is very nice,

Yoenes
 
 
  • Post #10
  • Quote
  • Nov 17, 2010 8:07pm Nov 17, 2010 8:07pm
  •  Yoenes
  • | Joined Jan 2010 | Status: Member | 256 Posts
Quoting sangmane
Disliked
hi Yoenes,

I added one input named MaxTF. Set it to 240 if you want TF switch back to M1 when after TF = H4. Dailiy = 1440, Weekly = 10080, Monthly = 43200
Ignored
Hello Sangmane

here im again.

this works very nice but as i have a monitor and i want se from a distance of 2 meter or so wich time frame it is that would be fine if you can add to it that it show me in big letter wich time frame it is in the left corner of the chart some think like this M15 and as it swich it will give the time frame size on the chart.

Thanks again,
Yoenes
 
 
  • Post #11
  • Quote
  • Nov 18, 2010 5:46am Nov 18, 2010 5:46am
  •  sangmane
  • Joined Apr 2009 | Status: MT4 Programmer | 758 Posts
attached
Attached File(s)
File Type: mq4 TFSwitcher.mq4   2 KB | 559 downloads
 
 
  • Post #12
  • Quote
  • Nov 18, 2010 5:56am Nov 18, 2010 5:56am
  •  Yoenes
  • | Joined Jan 2010 | Status: Member | 256 Posts
Quoting sangmane
Disliked
attached
Ignored
Thanks sangmane

this is very Nice

Yoenes
 
 
  • Post #13
  • Quote
  • Feb 27, 2013 6:47pm Feb 27, 2013 6:47pm
  •  msies
  • | Joined Feb 2013 | Status: Junior Member | 2 Posts
Hello, I need this EA for all open charts, with the same functions.
TFSwitcher.mq4 (expert)
Possible?
Attached File(s)
File Type: mq4 TFSwitcher.mq4   < 1 KB | 278 downloads
 
 
  • Post #14
  • Quote
  • Mar 5, 2013 6:41pm Mar 5, 2013 6:41pm
  •  msies
  • | Joined Feb 2013 | Status: Junior Member | 2 Posts
hello, can you help me please?
 
 
  • Post #15
  • Quote
  • Apr 4, 2018 12:08pm Apr 4, 2018 12:08pm
  •  reind
  • | Joined Apr 2018 | Status: Member | 3 Posts
Quoting sangmane
Disliked
{quote}Hi Yoenoes, I've just made a simple TF switcher.mq4 (M1>M5>M15>M30>H1>M1). This TFSwitcher is an EA, put in experts folder. The code adopted from zznbrm's script named ChgTF-All.mq4 hth {file}
Ignored
Hello sangmane, thank you very much for your EA.
I know this is an old thread, but can you please make an option so that it can change the timeframe of all pair?
Thank you very much.
 
 
  • Post #16
  • Quote
  • Feb 1, 2019 4:37pm Feb 1, 2019 4:37pm
  •  C-12
  • Joined Jun 2012 | Status: Signed In | 5,308 Posts
Bump

This indicator would be epic if it can apply to all charts on display. Also, possible to exclude other TF's (ie M1 / M5) from Rotation?

To make it absolutely perfect, a small pause / resume button in bottom corner of chart would be extra icing on top.

Any reason for it being an EA rather than indicator?
 
1
  • Post #17
  • Quote
  • Edited 7:18am Aug 3, 2020 4:20am | Edited 7:18am
  •  jinda54
  • | Joined Dec 2019 | Status: Junior Member | 3 Posts
Quoting sangmane
Disliked
{quote}Hi Yoenoes, I've just made a simple TF switcher.mq4 (M1>M5>M15>M30>H1>M1). This TFSwitcher is an EA, put in experts folder. The code adopted from zznbrm's script named ChgTF-All.mq4 hth {file}
Ignored
pls send your email.

hi sangmane. pls tell your email i am trying to connect you. my email is [email protected] ( I need your help).

pls send your email.

i need time frame switcher (Indicator) but different way. (you made time frame switcher before. i checked that).

base 5 min chart.
switch to 1 hour chart fot 10 sec.
after again 5 min chart (stay here for 30 min)
after stay, Again switch to 1 hour chart for 10 sec.
after 10 sec again to 5 min chart. (stay here for 30 min).

On 5 min chart stay is = 30 min.
on 1 hour chart stay is = 10 sec.

(Indicator.only)

inputs need - stay time.( 5min, 15 min,30 min 1hour)

pls make this type of indicator.
 
 
  • Post #18
  • Quote
  • Jan 19, 2021 4:34am Jan 19, 2021 4:34am
  •  a2xm
  • Joined Mar 2010 | Status: Member | 441 Posts
Quoting C-12
Disliked
Bump This indicator would be epic if it can apply to all charts on display. Also, possible to exclude other TF's (ie M1 / M5) from Rotation? To make it absolutely perfect, a small pause / resume button in bottom corner of chart would be extra icing on top. Any reason for it being an EA rather than indicator?
Ignored
Yes, please @sangmane those update would be perfect
I only need m15 - m30 - h1
 
 
  • Post #19
  • Quote
  • Sep 28, 2021 12:42am Sep 28, 2021 12:42am
  •  cja
  • Joined Feb 2007 | Status: Member | 1,902 Posts
Re-coded and updated as requested by a FF member.
You can select a range of timeframes to update for example M5 M30 H1 but they must be in sequence. A range like M5 M15 H1 D1 will not work.
The timeframe text can be removed or set as M5 or 5 Minutes.
NOTE : The name of the indicator cannot be changed as it will not work.

Click on image to see GIF animation
Attached Image (click to enlarge)
Click to Enlarge

Name: TF Switcher.gif
Size: 155 KB

Attached File(s)
File Type: ex4 TFSwitcher indi.ex4   43 KB | 295 downloads
Trade what you see not what you hope
 
1
  • Post #20
  • Quote
  • Sep 28, 2021 6:37am Sep 28, 2021 6:37am
  •  Murysco
  • Joined Mar 2015 | Status: Member | 501 Posts
Quoting cja
Disliked
Re-coded and updated as requested by a FF member. You can select a range of timeframes to update for example M5 M30 H1 but they must be in sequence. A range like M5 M15 H1 D1 will not work. The timeframe text can be removed or set as M5 or 5 Minutes. NOTE : The name of the indicator cannot be changed as it will not work. Click on image to see GIF animation {image} {file}
Ignored
Thank you very much. Really appreciated.
MM
Patience, Persistence and discipline = Holy Grail.
 
 
  • Platform Tech
  • /
  • I'm looking for automatic time frame switcher
  • Reply to Thread
    • Page 1 2
    • Page 1 2
0 traders viewing now
  • More
Top of Page
  • Facebook
  • Twitter
About FF
  • Mission
  • Products
  • User Guide
  • Media Kit
  • Blog
  • Contact
FF Products
  • Forums
  • Trades
  • Calendar
  • News
  • Market
  • Brokers
  • Trade Explorer
FF Website
  • Homepage
  • Search
  • Members
  • Report a Bug
Follow FF
  • Facebook
  • Twitter

FF Sister Sites:

  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Forex Factory® is a brand of Fair Economy, Inc.

Terms of Service / ©2023