• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • User/Email: Password:
  • 9:56pm
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 9:56pm
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
  •  
  • 1 Page 23456 9
  • 1 Page 234 9
  •  
  • Post #21
  • Quote
  • Edited at 2:03am Mar 6, 2020 12:52am | Edited at 2:03am
  •  thisara1
  • | Commercial Member | Joined Sep 2018 | 1,256 Posts
Quoting Jagg
Disliked
{quote} ^^^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 {image} {file}
Ignored
Jagg can you remove this signal show push chart...i need to bar close analysis only
Attached Images (click to enlarge)
Click to Enlarge

Name: Screenshot_26.jpg
Size: 160 KB Click to Enlarge

Name: Screenshot_35.jpg
Size: 300 KB
Attached File
File Type: mq4 VSAc BAR TEXT SIGNALS.mq4   14 KB | 88 downloads
  • Post #22
  • Quote
  • Mar 6, 2020 2:51am Mar 6, 2020 2:51am
  •  thisara1
  • | Commercial Member | Joined Sep 2018 | 1,256 Posts
close eurnzd 97pip
Attached Image (click to enlarge)
Click to Enlarge

Name: Screenshot_39.jpg
Size: 280 KB
  • Post #23
  • Quote
  • Mar 6, 2020 3:10am Mar 6, 2020 3:10am
  •  shiva
  • Joined Aug 2007 | Status: Doing It In Dubai | 2,448 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

string MPrefix="";
int OnInit() {

if (Period() < 60 || Period()>240)
{
//Comment("Invalid timeframe selected");

ObjectsDeleteAll();
DL("001", "Invalid timeframe", 250, 50,Red,"Arial",21,0);
return(0);
}

//-----------------------------------------------------------------------

//+------------------------------------------------------------------+
//| DL function |
//+------------------------------------------------------------------+
void DL(string label, string text, int x, int y, color clr, string FontName = "Arial",int FontSize = 12, int typeCorner = 1)

{
string labelIndicator = MPrefix + label;
if (ObjectFind(labelIndicator) == -1)
{
ObjectCreate(labelIndicator, OBJ_LABEL, 0, 0, 0);
}

ObjectSet(labelIndicator, OBJPROP_CORNER, typeCorner);
ObjectSet(labelIndicator, OBJPROP_XDISTANCE, x);
ObjectSet(labelIndicator, OBJPROP_YDISTANCE, y);
ObjectSetText(labelIndicator, text, FontSize, FontName, clr);
  • Post #24
  • Quote
  • Mar 6, 2020 3:50am Mar 6, 2020 3:50am
  •  Jagg
  • Joined Oct 2006 | Status: Member | 457 Posts
Quoting thisara1
Disliked
{quote} Jagg can you remove this signal show push chart...i need to bar close analysis only {file} {image} {image}
Ignored
thisara1 - this is the last not related to the topic customation I do for you here. This thread should not become the 2nd I will code your EAs and Indicators for no charge thread ok? Please post such requests there....
Attached File
File Type: mq4 VSAc BAR TEXT SIGNALS.mq4   28 KB | 104 downloads
1
  • Post #25
  • Quote
  • Edited at 12:57am Mar 16, 2020 12:34am | Edited at 12:57am
  •  lupy
  • | Joined May 2011 | Status: Member | 16 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
Thanks a million SIR!! you have saved me countless hours of ticking the visibility and the rectangle colour. I love it ...one thing if you don't mind me asking could you also make as an input parameter when loading the indicator what is written in it's description? so you have now the TF visibility as a default and is cool but i use diferent names for the levels. Thank you in advance.

l.e. Not sure if bug or this is how it was meant..if a certain rectangle has the option of extending with to present, even if i modify it's ending date after it has been drawn...when i draw a new object/rectangle it extends all of them to the present (this doesn't happen to canvas objects)

Thank you
  • Post #26
  • Quote
  • Edited at 7:13pm Mar 16, 2020 6:57pm | Edited at 7:13pm
  •  Jagg
  • Joined Oct 2006 | Status: Member | 457 Posts
Quoting lupy
Disliked
Thanks a million SIR!! you have saved me countless hours of ticking the visibility and the rectangle colour. I love it ...one thing if you don't mind me asking could you also make as an input parameter when loading the indicator what is written in it's description? so you have now the TF visibility as a default and is cool but i use diferent names for the levels. Thank you in advance.
Ignored
Please test latest version v1.03
- added a new parameter for the object description (default blank - which means the visible timeframes are shown like it was in prev version)

Quoting lupy
Disliked
l.e. Not sure if bug or this is how it was meant..if a certain rectangle has the option of extending with to present, even if i modify it's ending date after it has been drawn...when i draw a new object/rectangle it extends all of them to the present (this doesn't happen to canvas objects) Thank you
Ignored
Clarification: When you set expand to YES for an object that means the object will be expanded on going (on every new bar, ....)!!!

Until now every object which had expand set to yes was modified to end at the actual bar (time[0]+ExtendRightOffset parameter) when the chart was changed, a new bar comes in etc.
=> I changed that so it only gets expanded when the acutal object end is smaller than time[0]+ExtendRightOffset parameter.

So when you manually expand an object end far into the future this object end is not "cutted" anymore back to present/latest bar (time[0]+ExtendRightOffset parameter)
Attached Image (click to enlarge)
Click to Enlarge

Name: 2020-03-16 obj Desc.png
Size: 17 KB
Attached File
File Type: ex4 Drawing Toolbox.ex4   234 KB | 124 downloads
2
  • Post #27
  • Quote
  • Mar 17, 2020 3:27am Mar 17, 2020 3:27am
  •  lupy
  • | Joined May 2011 | Status: Member | 16 Posts
works peerfectly! my charts never looked better.

Thank you! you saved me countless hours in the long run.

Best,
E/

Quoting Jagg
Disliked
{quote} Please test latest version v1.03 - added a new parameter for the object description (default blank - which means the visible timeframes are shown like it was in prev version) {quote} Clarification: When you set expand to YES for an object that means the object will be expanded on going (on every new bar, ....)!!! Until now every object which had expand set to yes was modified to end at the actual bar (time[0]+ExtendRightOffset parameter) when the chart was changed, a new bar comes in etc. => I changed that so it only gets expanded when the...
Ignored
1
  • Post #28
  • Quote
  • Mar 18, 2020 3:44pm Mar 18, 2020 3:44pm
  •  Wevertonh
  • | Joined Mar 2020 | Status: Junior Member | 5 Posts
I have this indicator, the results are very good, but it shows up too late, can someone make it shows up earlier please?
Attached File
File Type: mq4 Star 1.mq4   2 KB | 79 downloads
1
  • Post #29
  • Quote
  • Mar 18, 2020 4:49pm Mar 18, 2020 4:49pm
  •  Jagg
  • Joined Oct 2006 | Status: Member | 457 Posts
Quoting Wevertonh
Disliked
I have this indicator, the results are very good, but it shows up too late, can someone make it shows up earlier please? {file}
Ignored
Has nothing to do with the topic here in this thread (+ decompiled code)
  • Post #30
  • Quote
  • Mar 18, 2020 6:14pm Mar 18, 2020 6:14pm
  •  Wevertonh
  • | Joined Mar 2020 | Status: Junior Member | 5 Posts
Quoting Jagg
Disliked
{quote} Has nothing to do with the topic here in this thread (+ decompiled code)
Ignored
But i can't create a new thread, so i had to choose one and coment (+ i sent the decompiled code already)
  • Post #31
  • Quote
  • Mar 18, 2020 9:11pm Mar 18, 2020 9:11pm
  •  Jagg
  • Joined Oct 2006 | Status: Member | 457 Posts
Quoting Wevertonh
Disliked
{quote} But i can't create a new thread, so i had to choose one and coment (+ i sent the decompiled code already)
Ignored
Then post/ask it there for example I will code your EAs and Indicators for no charge - thanks
  • Post #32
  • Quote
  • Mar 20, 2020 4:16pm Mar 20, 2020 4:16pm
  •  Wevertonh
  • | Joined Mar 2020 | Status: Junior Member | 5 Posts
Quoting Jagg
Disliked
{quote} Then post/ask it there for example I will code your EAs and Indicators for no charge - thanks
Ignored
Alright thx, i thought this wasn't working anyome
  • Post #33
  • Quote
  • Mar 23, 2020 12:39pm Mar 23, 2020 12:39pm
  •  Jwiro
  • | Joined Feb 2020 | Status: Member | 7 Posts
Quote
Disliked
Jagg

Thank you for your time creating this great indicator.
I create a rectangle this I move it to the place I want and well, but when you add another rectangle it moves them all to one place.
Attach images, I hope you understand. Thanks a lot.
Attached Images (click to enlarge)
Click to Enlarge

Name: 1.png
Size: 11 KB Click to Enlarge

Name: 2.png
Size: 11 KB
  • Post #34
  • Quote
  • Edited at 7:39am Mar 24, 2020 3:50am | Edited at 7:39am
  •  Jagg
  • Joined Oct 2006 | Status: Member | 457 Posts
Quoting Jwiro
Disliked
{quote} Thank you for your time creating this great indicator. I create a rectangle this I move it to the place I want and well, but when you add another rectangles it moves them all to one place. Attach images, I hope you understand. Thanks a lot. {image} {image}
Ignored
Your shown rectangle have Canvas set to true - so these are "built graphic/bitmap objects" and not comparable to a drawn mt4 standard rectangle object for example which you can click and drag/widen it/... after you created it.

So I think you have set "Extend on new bar" to these canvas objects to YES - this means on every new bar/chart change these canvas graphics are drawn new with the originally start date/time and end time at the actual/latest bar. This describes your "problem" I think.

So two choices for you:
1) Don't draw the rectangles per click on the panel and move it afterwards to your desired position but use the set keyboard shortcut for that (default "A" for example)
So you hover with your mouse pointer exactly to the chart region where the rectangle should start and simply press "A" - the rectangle is drawn exactly on that place!

2) when you don't want to use the hotkey (there is no reason for me to don't use it ) you have to set "Extend on new bar" to NO
Attached Image (click to enlarge)
Click to Enlarge

Name: rect_canvas.png
Size: 39 KB
1
  • Post #35
  • Quote
  • Mar 24, 2020 12:07pm Mar 24, 2020 12:07pm
  •  Jwiro
  • | Joined Feb 2020 | Status: Member | 7 Posts
Quote
Disliked
Jagg


Excellent clarification, I have to know more about this great indicator, thank you a thousand thanks.
Successes.
1
  • Post #36
  • Quote
  • Mar 30, 2020 6:06pm Mar 30, 2020 6:06pm
  •  classy
  • Joined Jun 2012 | Status: Trader , Analyst and Mentor | 4,138 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
nice drwing tool. if rectagle show total pips and 1/2 horizontal it will be great ict order block tool. is your indicator and template shareble .there are a ton of infi without clutter chart so nice and clear.thanks in advance
Say something meaningful or Silence!!
1
  • Post #37
  • Quote
  • Mar 31, 2020 4:51am Mar 31, 2020 4:51am
  •  Jagg
  • Joined Oct 2006 | Status: Member | 457 Posts
Quoting classy
Disliked
{quote}if rectagle show total pips and 1/2 horizontal it will be great ict order block tool.
Ignored
Sorry, I don't understand what you mean here...
  • Post #38
  • Quote
  • Mar 31, 2020 10:40am Mar 31, 2020 10:40am
  •  classy
  • Joined Jun 2012 | Status: Trader , Analyst and Mentor | 4,138 Posts
Quoting Jagg
Disliked
{quote} Sorry, I don't understand what you mean here...
Ignored
thanks for response one picture can you tell you 100 words!. i follow smart money ict orderblock . market consolidate than break up or down and rectagle can measure how many pip?(i know about cross hair) and one more thing market reach to mean that is 50 % of rectagle. now picture which is showing total pips(box/rectagle drawn) and 50%. and more thing if it is possible than share your indicator and template .thanks
Attached Image (click to enlarge)
Click to Enlarge

Name: usd cad ptz update 1.png
Size: 43 KB
Say something meaningful or Silence!!
  • Post #39
  • Quote
  • Apr 1, 2020 1:10am Apr 1, 2020 1:10am
  •  classy
  • Joined Jun 2012 | Status: Trader , Analyst and Mentor | 4,138 Posts
Hi jagg one more example 50% pct retrace block zone/rectangle look how amazing price most of the time travel that area again and again.
Attached Image (click to enlarge)
Click to Enlarge

Name: 50 PCT RETRACE BLOC ZONE.png
Size: 231 KB
Say something meaningful or Silence!!
  • Post #40
  • Quote
  • Apr 2, 2020 11:13pm Apr 2, 2020 11:13pm
  •  lupy
  • | Joined May 2011 | Status: Member | 16 Posts
Hey Jagg!

when you have some time ..would you be kind enough to add 3 more rectangles and 3 more lines and the following inputs?:



- the posibility of adding a shortcut for "toogle" object description
- the posibility of adding a predefined length ( in periods of the timeframe that they are drawn ) for the horizontal lines and rectangles?

Thanks a Million

E.
  • Platform Tech
  • /
  • [MT4] Changing the visible timeframes of multiple objects?
  • Reply to Thread
    • 1 Page 23456 9
    • 1 Page 234 9
1 trader 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