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

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Printable Version

Similar Threads

Objects removed when changing TFs on MT4 4 replies

Indicator that makes objects visible only in the Time Frame drawn 7 replies

How to change timeframes in Mt4 to timeframes which are not supported (like 10 min.)? 5 replies

MT4 Change Visualization of multiple objects 0 replies

Q. on changing timeframes in MT4 5 replies

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe
  • 77
Attachments: [MT4] Changing the visible timeframes of multiple objects?
Exit Attachments

[MT4] Changing the visible timeframes of multiple objects?

  • Last Post
  •  
  • Page 1 23456 9
  • Page 1 234 9
  •  
  • Post #1
  • Quote
  • First Post: Apr 9, 2019 9:27am Apr 9, 2019 9:27am
  •  bippo
  • | Joined Mar 2017 | Status: Member | 46 Posts
Hi everyone,

Does anyone know if there's a script which would allow me to select multiple objects such as trendlines, rectangles, etc and change on which timeframe they're visible on?

Because the way MT4 currently is, you have to manually change every single object:
Attached Image
  • Post #2
  • Quote
  • Jan 28, 2020 9:10pm Jan 28, 2020 9:10pm
  •  Nothocestrum
  • | Joined Jun 2017 | Status: Member | 3 Posts
That is a good question bippo.

As far as I can tell, such a function is not possible. But, I really do not know for sure.
That would be really useful.

I found your post because I have a similar query.
I am trying to find out if it is possible to duplicate multiple shapes at once, and then move them as a group in unison.

I use three rectangles to analyze my charts each morning, and it would be so much easier if I could copy all three as a set, and slide that new set to the next day.

I think in both these questions, the core is: does MT4 have a function which combines objects to be managed as one unit.
So far, in using mt4 and experimenting with every possibility I can think of, I've not yet found a way.

If anyone else knows one way or the other?...
  • Post #3
  • Quote
  • Jan 29, 2020 3:09am Jan 29, 2020 3:09am
  •  emmzett
  • Joined Apr 2008 | Status: Member | 430 Posts
Quoting bippo
Disliked
Hi everyone, Does anyone know if there's a script which would allow me to select multiple objects such as trendlines, rectangles, etc and change on which timeframe they're visible on? Because the way MT4 currently is, you have to manually change every single object: {image}
Ignored
Standard MQL:
Inserted Code
bool ObjectSet(string label, OBJPROP_TIMEFRAMES, int periodFlags);

with periodFlags being any combination of:
Inserted Code
OBJ_PERIOD_M1      0x0001  Object is shown on 1 minute charts
OBJ_PERIOD_M5      0x0002  Object is shown on 5 minute charts
OBJ_PERIOD_M15     0x0004  Object is shown on 15 minute charts
OBJ_PERIOD_M30     0x0008  Object is shown on 30 minute charts
OBJ_PERIOD_H1      0x0010  Object is shown on 1 hour charts
OBJ_PERIOD_H4      0x0020  Object is shown on 4 hour charts
OBJ_PERIOD_D1      0x0040  Object is shown on daily charts
OBJ_PERIOD_W1      0x0080  Object is shown on weekly charts
OBJ_PERIOD_MN1     0x0100  Object is shown on monthly charts
OBJ_PERIODS_ALL    0x01FF  Object is shown on all timeframes
NULL               0       Object is shown on all timeframes
OBJ_PERIODS_NONE  -1       Object is hidden on all timeframes
  • Post #4
  • Quote
  • Jan 29, 2020 3:33am Jan 29, 2020 3:33am
  •  Jagg
  • Joined Oct 2006 | Status: Member | 457 Posts
Don't know if it's from any interest but here is my "Drawing Toolbox" with many options.

I also use rectangles a lot (see red and blue rectangle objects on the chart) - when you click with the mouse one rectangle objects in the panel (marked yellow) a rectangle object is added to the chart "somewhere". I've included input options so you can set hotkeys for any object from the panel - so I've set letter "A" to a rectangle (red) as hotkey shortcut for example and letter "B" to the 2nd rectangle object and now I simply hover the mouse over the chart region I want to place the rectangle and press "A" and the rectangle is drawn on that place. When "Extend" option is set to yes this rectangle extends automatically when a new bar is printed.

Same with Fibo - I hover the mouse over the bar in the chart where the low/high is and click "F" hotkey shortcut and a fibo object is drawn - my tool finds the low/high automatically.

All the objects you draw from this panel or via hotkey automatically get these periodFlags which emmzett mentioned above.
That means when you draw a rectangle, fibo, trendline,... on a M5 chart - this object is only visible from M5 and below (means you can see it in a M5 and M1 chart only). Do you place an object on a H1 chart it's visible on H1, M30, M15, M5 and M1 - think you get it....

I add my indicator here "as it is now" - there are definitely still some inconsistencies/bugs in there - but for me it's really useful like it is at this stage....
Attached Image (click to enlarge)
Click to Enlarge

Name: Drawing Toolbox.png
Size: 67 KB
Attached File
File Type: ex4 Drawing Toolbox.ex4   225 KB | 435 downloads
6
  • Post #5
  • Quote
  • Feb 7, 2020 4:08am Feb 7, 2020 4:08am
  •  Jagg
  • Joined Oct 2006 | Status: Member | 457 Posts
v1.02 has now an extra input for every object where you can decide on which timeframes this object should be visible (3 options available)
Attached Image (click to enlarge)
Click to Enlarge

Name: Drawing_Toolbox_v1.02_objects_on.png
Size: 11 KB
Attached File
File Type: ex4 Drawing Toolbox.ex4   230 KB | 308 downloads
4
  • Post #6
  • Quote
  • Feb 10, 2020 12:31pm Feb 10, 2020 12:31pm
  •  kvak
  • | Joined Feb 2018 | Status: Member | 64 Posts
Hi Mr. Jagg. I like your indicators and I thank you for it. I want kindly ask you if is possible to add lines shift for prices to this indicator? Sorry for offtopic to this thread.
Thank you.
Attached Image (click to enlarge)
Click to Enlarge

Name: EU15.png
Size: 123 KB
  • Post #7
  • Quote
  • Feb 11, 2020 3:41am Feb 11, 2020 3:41am
  •  Jagg
  • Joined Oct 2006 | Status: Member | 457 Posts
Quoting kvak
Disliked
Hi Mr. Jagg. I like your indicators and I thank you for it. I want kindly ask you if is possible to add lines shift for prices to this indicator? Sorry for offtopic to this thread. Thank you. {image}
Ignored
try new version...
Attached Image (click to enlarge)
Click to Enlarge

Name: PrevClosePercentages_v1.04j.png
Size: 9 KB
Attached File
File Type: ex4 PrevClosePercentages_v1.04j.ex4   119 KB | 270 downloads
2
  • Post #8
  • Quote
  • Feb 11, 2020 3:47am Feb 11, 2020 3:47am
  •  kvak
  • | Joined Feb 2018 | Status: Member | 64 Posts
Quoting Jagg
Disliked
{quote} try new version... {image} {file}
Ignored
Thank you
  • Post #9
  • Quote
  • Feb 13, 2020 9:18am Feb 13, 2020 9:18am
  •  thisara1
  • | Commercial Member | Joined Sep 2018 | 1,256 Posts
Quoting Jagg
Disliked
{quote} try new version... {image} {file}
Ignored
Jagg can you can you added Pencil or Pen Tool this indicator?
example
Attached Image (click to enlarge)
Click to Enlarge

Name: Screenshot_65.png
Size: 93 KB
  • Post #10
  • Quote
  • Feb 13, 2020 12:43pm Feb 13, 2020 12:43pm
  •  Jagg
  • Joined Oct 2006 | Status: Member | 457 Posts
Quoting thisara1
Disliked
{quote} Jagg can you can you added Pencil or Pen Tool this indicator? example {image}
Ignored
...sent pm - I think clarified for this thread here.

(in my drawing toolbox indicator I don't think I'll implement a 'freehand drawing pencil')
1
  • Post #11
  • Quote
  • Feb 13, 2020 12:54pm Feb 13, 2020 12:54pm
  •  thisara1
  • | Commercial Member | Joined Sep 2018 | 1,256 Posts
Quoting Jagg
Disliked
{quote} ...sent pm - I think clarified for this thread here. (in my drawing toolbox indicator I don't think I'll implement a 'freehand drawing pencil')
Ignored
yes thank you friends
  • Post #12
  • Quote
  • Feb 19, 2020 12:37am Feb 19, 2020 12:37am
  •  aweawe
  • | Joined Apr 2019 | Status: Member | 14 Posts
Quoting Jagg
Disliked
Don't know if it's from any interest but here is my "Drawing Toolbox" with many options. I also use rectangles a lot (see red and blue rectangle objects on the chart) - when you click with the mouse one rectangle objects in the panel (marked yellow) a rectangle object is added to the chart "somewhere". I've included input options so you can set hotkeys for any object from the panel - so I've set letter "A" to a rectangle (red) as hotkey shortcut for example and letter "B" to the 2nd rectangle object and now I simply hover the mouse over the chart...
Ignored

hi mister jagg, hope you are doing good there.
I know its off topic, i edited the code for adding few rectangles, but now i need an equidistant channel.
Since I don't have any programming background, the compiler didn't show any error but my channel icon doesn't appear on panel box.
Attached Image
  • Post #13
  • Quote
  • Feb 20, 2020 2:30am Feb 20, 2020 2:30am
  •  Jagg
  • Joined Oct 2006 | Status: Member | 457 Posts
Quoting aweawe
Disliked
{quote} hi mister jagg, hope you are doing good there. I know its off topic, i edited the code for adding few rectangles, but now i need an equidistant channel. Since I don't have any programming background, the compiler didn't show any error but my channel icon doesn't appear on panel box. {image}
Ignored
...without posting your code/indicator no one can help
  • Post #14
  • Quote
  • Feb 20, 2020 1:39pm Feb 20, 2020 1:39pm
  •  aweawe
  • | Joined Apr 2019 | Status: Member | 14 Posts
Quoting Jagg
Disliked
{quote} ...without posting your code/indicator no one can help
Ignored
As your request
Attached File
File Type: mq4 Color Levels Custom.mq4   90 KB | 274 downloads
  • Post #15
  • Quote
  • Feb 20, 2020 7:30pm Feb 20, 2020 7:30pm
  •  Jagg
  • Joined Oct 2006 | Status: Member | 457 Posts
Quoting aweawe
Disliked
{quote} As your request {file}
Ignored
...only tested when placing the panel left lower/upper - when placing the panel at the right side it's cutted because of the amount of your objects (I haven't the time to digg deeper into that issue sorry)
Attached File
File Type: mq4 Color Levels Custom.mq4   90 KB | 280 downloads
  • Post #16
  • Quote
  • Feb 21, 2020 10:05pm Feb 21, 2020 10:05pm
  •  aweawe
  • | Joined Apr 2019 | Status: Member | 14 Posts
Quoting Jagg
Disliked
{quote} ...only tested when placing the panel left lower/upper - when placing the panel at the right side it's cutted because of the amount of your objects (I haven't the time to digg deeper into that issue sorry) {file}
Ignored

Don't need to be sorry for that mr. jagg, it was my lack of knowledge how to convert ideas into code, so I put many objects on current timeframe and couldnt filter out which object have to be appeared on certain TF. I just realized its damn long like a bill of monthly groceries.

I'm grateful for this mr. jagg.
Thank you very much
  • Post #17
  • Quote
  • Feb 29, 2020 4:08pm Feb 29, 2020 4:08pm
  •  thisara1
  • | Commercial Member | Joined Sep 2018 | 1,256 Posts
Quoting Jagg
Disliked
{quote} ...only tested when placing the panel left lower/upper - when placing the panel at the right side it's cutted because of the amount of your objects (I haven't the time to digg deeper into that issue sorry) {file}
Ignored
Jagg can you code this position change any place move on chart?
Attached File
File Type: mq4 timeframe_zoom_per_chart.mq4   16 KB | 169 downloads
  • Post #18
  • Quote
  • Mar 4, 2020 4:35am Mar 4, 2020 4:35am
  •  Jagg
  • Joined Oct 2006 | Status: Member | 457 Posts
Quoting thisara1
Disliked
{quote} Jagg can you code this position change any place move on chart? {file}
Ignored
You can now choose the corner (and optionally set X-/Yshift values to position wherever you like)
Attached Image (click to enlarge)
Click to Enlarge

Name: timeframe_zoom_per_chart_v1.0j.png
Size: 30 KB
Attached File
File Type: mq4 timeframe_zoom_per_chart_v1.0j.mq4   19 KB | 239 downloads
2
  • Post #19
  • Quote
  • Edited at 5:03am Mar 4, 2020 4:49am | Edited at 5:03am
  •  thisara1
  • | Commercial Member | Joined Sep 2018 | 1,256 Posts
Quoting Jagg
Disliked
{quote} You can now choose the corner (and optionally set X-/Yshift values to position wherever you like) {image} {file}
Ignored
awesome work thank your frineds lite mp indicator added time chart change very show any reason friends,,same other symbol change indicator
Attached Image (click to enlarge)
Click to Enlarge

Name: Screenshot_51.jpg
Size: 304 KB
  • Post #20
  • Quote
  • Mar 4, 2020 7:43am Mar 4, 2020 7:43am
  •  Jagg
  • Joined Oct 2006 | Status: Member | 457 Posts
Quoting thisara1
Disliked
lite mp indicator added time chart change very show any reason friends,,same other symbol change indicator
Ignored
^^^don't understand this - everything ok or not ?

Here is v1.1 - added a few more optional parameters

(1) is the look when border color is set to NONE
(2) is the look when border color is set to the same color as the chart background
Attached Image (click to enlarge)
Click to Enlarge

Name: timeframe_zoom_per_chart_v1.1j.png
Size: 48 KB
Attached File
File Type: mq4 timeframe_zoom_per_chart_v1.1j.mq4   22 KB | 221 downloads
2
  • Platform Tech
  • /
  • [MT4] Changing the visible timeframes of multiple objects?
  • Reply to Thread
    • Page 1 23456 9
    • Page 1 234 9
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 / ©2021