DRAWLINE and DRAWHLINE
Forums › ProRealTime English forum › ProBuilder support › DRAWLINE and DRAWHLINE
- This topic has 13 replies, 7 voices, and was last updated 2 years ago by PeterSt.
-
-
07/02/2022 at 5:12 AM #196591
Hi All,
When I use DRAWHLINE or DRAWLINE on 1Hr chart for example, the result stays confined to the 1Hr chart and does not show on higher or lower timeframes. Only manually drawn horizontal lines show on all timeframes.
Is there a way to show DRAWHLINE or DRAWLINE on ALL timeframes?
Tnx.
1 user thanked author for this post.
07/02/2022 at 6:35 AM #19659207/02/2022 at 10:14 AM #19660507/04/2022 at 2:25 AM #196697just on the 1-hour chart.
07/04/2022 at 10:39 AM #19671407/04/2022 at 1:31 PM #196729but when I draw a support or resistance line manually, it shows up on every other time frame
07/04/2022 at 1:59 PM #196731PRT can draw objects that can be visible on lower TFs, not custom code.
07/04/2022 at 3:29 PM #196739Hi… I think I can see the problem.
Beware! Automatic Settings have control’ so, ‘Ask’ and ye shall receive!
When you ask PRT to open a chart window you unknowingly ask to open a PRICE panel indicator in it as well. That doesn’t seem like a big deal! So when you draw a manual object on this panel, you are asking PRT to draw the object here!.
This object is drawn with respect to its configure Settings [click object highlight/border> Configure~object] and Global Setting at [MainMenu>Settings>Platform>Charts>…] and their maybe others. In the Configure Settings at the bottom, ‘TF’ gives options, ‘when’ this manual object ‘appears’, with respect to the Time Frame of additional charts. So this sets if you see a manual object or not on other time frames. Check!
When you now add a stock/user indicator to the price panel, your asking PRT to do that, here! And really all whats happening is it is effectively being drawn on top of the price panel using the same scale dimensions and a bit of magic.
Now, if you open a second chart window, remember what your asking!, the automated price panel is added which is why you can see the price and, if settings allow, your original manual object. However, as ‘Nicolas’ points out, your indicator code is only on the original panel not the new panel.
My logic is this. You can only see the manual object, drawn on the Price panel, in the second chart, because you asked for it, inadvertently I might add, but you won’t see your indicator object because you haven’t added it. Yet!
What PRT needs, is you to ask it to add your indicator to the price panel on the new chart. Then, what ever time frame of your second chart is set to you will see your stock/user indicator and within certain limits its object.
One such limit that comes to mind is if the object from either a manual object or stock/user indicator object fall’s out side of the historical data loaded in the chart. There maybe other!
Another thing I’ve noticed is the Price panel is special in the way of its ‘TF’ options because other non Price panels don’t have a option, there limited to there time frame. This means if manual objects are drawn on them they will only be seen in other charts if, the appropriate indicator is added, the time frames are the same and within limits.
Using the Duplicate Chart button [Bottom bar> overlapping charts] create another chart window with all the original objects and indicators. Therefore changing the time frame on this, means objects will appear unless out of limits.
I hope this will help you ‘see’ more! , but bare in mind there may be other settings and features which may affect the above.
After seeing your post I now know a lot more about this as well as noticing a few other interesting things along the way. Thanks for posting.
1 user thanked author for this post.
07/05/2022 at 4:55 AM #196759Thank you for your nice explanations !Another thing I’ve noticed is the Price panel is special in the way of its ‘TF’ options because other non Price panels don’t have a option, there limited to there time frame. This means if manual objects are drawn on them they will only be seen in other charts if, the appropriate indicator is added, the time frames are the same and within limits.
So Yes, the button you see under the mouse arrow in the 1st attachment. Btw, this copies everything regardless lower or higher timeframe, and including all your custom indicators.
Of course you can add parameters which relate to the timeframe so you can adapt this to certain standard TF’s you show. See foe example “UnitsInScreen” in the second attachment. So you still have one indicator, but a parameter keeps it visible.
The 3rd attachment shows how all can be kept in view, no matter the amount of data shown is different – look at the vertical purple bar (which relates to the two horizonal bars – use your imagination for what it does 🙂 ). Anyway both are obviously the same instruments. The one is 1 second and the other is 5 minutes. I have many of these on-screen and when I need a new set, I copy from one of the others. Might you have a custom “zoom” applied (mousewheel) then even that is not only always saved – its setting can also be copied.That all said, now investigate the Link button under the mouse pointer you see in the 4th attachment. The only person I see talking about this is myself now and then, while it implies one of the most powerful features. Possibly people hardly know it because it is only available fully-fletched in PRT Premium and I would get Premium for that alone;
Now you can let load PRT all the same data we just talked about but this time “dynamically” and determined by one master chart you give the same link colour and where this master card is triggered by a List or Search function with also that same link colour. This master chart can load as many other charts as you link automatically (I suppose there will be a limit somewhere), and if you now have a new (or changed) Indicator, you change it one time, and all newly loaded charts will now automatically show the newly set data.
This is similar to the Copy function, but the difference is that if you copied 10 charts and change one, nothing will change to the others. Unless, I suppose (I never even tried), all the copied charts have a same link (colour) again, and what you change in one, will be applied to all of the others (use a separate colour for each different TF you use).
Too much to explain and you should just start investigating this. It may take you a long while to discover all the possibilities (like my “I suppose” in the previous sentence 😉 ).07/05/2022 at 8:32 AM #19676607/05/2022 at 2:25 PM #196790Thanks for you kind comment.
Since my version doesn’t have the ‘Link’ option you described I don’t know if various functionality is just missing and/or options restricted on the things I have got. So this maybe why i’m not getting it. Now when I dumb’ed down my comments, that was for my benefit and represents the level i’m on.
From your comments,
So Yes, the button you see under the mouse arrow in the 1st attachment. Btw, this copies everything regardless lower or higher timeframe, and including all your custom indicators.
I don’t get the ‘lower or higher’ reference since I only know that A chart can only be on one timeframe at a time. So, a duplicate is initially on the same time frame, until you change it. Unless linked by timeframe.
Of course you can add parameters which relate to the timeframe so you can adapt this to certain standard TF’s you show. See foe example “UnitsInScreen” in the second attachment. So you still have one indicator, but a parameter keeps it visible.
When you say ‘add parameters, are you referring to a custom indicator which in general works on all timeframes that has a dynamic variable(s), which allows you to manually tweak some value in code depending on which timeframe your indicator happens to be on. And NOT that you can control the charts unit settings . 5min chart 25units = 25 bars on screen and 525 bars of historic data. And i’m totally lost with “but a parameter keeps it visible.”
Now I get a strong impression from your later comments when you talk about ‘Master Chart’, ‘Link’ and copying multiple charts etc that there may be some dis-connect between our descriptions based on our version experience.
You did remind me to look at the link button on the charts top bar, which I can see offers some additional options. I’ll look into these and the difference in version.
Thanks for your comments.
07/05/2022 at 3:35 PM #196805I don’t get the ‘lower or higher’ reference since I only know that A chart can only be on one timeframe at a time. So, a duplicate is initially on the same time frame, until you change it.
Correct. And if we take out the confusion with the “Link” icon (forget that I have that), then it is all as simple as you just said.
Point is : you can next indeed change the timeframe and nothing gets lost. So in this copy you change as you please and next you have two charts of the same instrument, all your (also custom) indicators there; both charts are now ready to be copied from again.
And druby, I was only repeating/confirming what you already told BUT I added the “and higher” because I did not understand the comment from Roberto. Nor did I understand his “custom code”. So :When you say ‘add parameters, are you referring to a custom indicator which in general works on all timeframes that has a dynamic variable(s), which allows you to manually tweak some value in code depending on which timeframe your indicator happens to be on.
Sure. See below. This is about the vertical purple line I think I talked about. It works on all timeframes, but depending on the chart and timeframe I may want to change the offset from the (right-hand) end of the chart. Easy. Btw the purpose of that is determining high and low on the right side of that line (now see the horizontal purple lines). Thus in this case from the past 25 bars of 5 minutes.
In the 3rd attachment you see it for the 1 second timeframe, and there I want to know it from the last 100 (x1) seconds.
You could say that the “backbarsnr” parameter I show here, “keeps the vertical line visible”. Notice though that it also functions as a bandwidth limiter of the horizontal lines and in the end what I want to see. Thus, let shift out the vertical line all the way to the left, and the horizontal lines would also be out of view (though coincidentally they – or one could be visible).I am not sure whether this is too much offtopic or helpful, but personally I don’t see things which are not possible. And the Indicator code is thus always the same, but a parameter controls its “bandwidth” ?
07/06/2022 at 3:22 AM #196830Thanks for the clarification Peter, I think i’m getting it!. Some problem I have are due to not knowing the limits and thinking beyond them.
Say this, if entering a maze you have the option to go left, right or straight on, but the only way to the center is to go right. Confident and care free, and NOT knowing that, allows you go left and waste your time and effort on something that can’t be done, but you don’t know that at that point.
Having been totally lost you end up back at the beginning, and filled with some relief, decides to go straight on. This time, more seriously, with a plan to logically map all the paths, this feels good, but as time goes on there’s, a growing feeling in the back of your mind thinking I didn’t do that when I went left, did I miss something!. By the time your efforts get you back to the beginning you’ve talked yourself into going left again and systematically mapping all those paths, more time and effort.
When finally, you get to the point when the only path left is the right path, and, you haven’t given up by then, your tired and frustrated etc and think it wasn’t worth it and may not do it again.
If there’s anything to be taken from my little story is that the thousand of wrong paths build your knowledge in deciding on which direction you take next time, and usually that is more useful in the long run, than your original goal you set out on. It would be a waste of time if you did not try again.
Just for clarity’s sake, take 3.
The vertical line @ 25 bars back from current bar on the 5min chart 100 units, will disappear if you duplicate the chart then change the time frame to 1 sec. This, because firstly, the chart is still set to 100 units, and basic 100 unit charts only loads 600/ bars with 100 displayed, this may vary depending on any additional bar that have accumulated and zoom altered before duplication. And secondly.
5min = 300sec and 25 x 5min equates to 25 x 300 = 7500sec + a few from current bar.
This can be overcome by increasing the charts units but, your application doesn’t require this because you only want to use the functionality of the indicator, ‘the line’, in a second chart and position and not to display the position of the 5min line, on the 1 sec chart.
Now in concept terms, the indicator just draws a vertical line, you want a line in a couple of places, you do this by adding the indicator to all charts that require it, introduce the dynamic variable, you can manually offset a value say ‘1’ and by multiplying 25 for the 5min to get the 25 bars position and then multiplying by 100 on the 1 sec to get 100 bars position. Job done!
This reminds me, you can lead a horse to water, but you can’t make it drink!
A thing I’ve come across while trekking the maze and expanded on while looking it to this, poses this question,
‘What is a bar!’
Until recently I thought a bar was a fixed period of time, however, it appears, to be a bar it needs at least 1 tick of market data, and the barindex count doesn’t increment if it doesn’t see this how ever long it takes . This is more likely to happen on smaller time frames since the time period of a bar is small enough to be exceed by a period of no market activity. Today while working through you comments Iv’e notice that the ‘Ruler’ tool doesn’t seem to follow this concept but counts a bar as a fixed period of time. I wonder how I get confused at times!
Thanks. All the Best.
1 user thanked author for this post.
07/06/2022 at 5:43 AM #196832Yes, a bar (candle) is a fixed period in time *if* it works with time as the unit. Compare with Ticks as the unit and then : no bar when no tick data. Could stay out for hours and skip hours (building the next bar right next to the previous once a tick (a trade from someone) finally is there).
Nice story !
1 user thanked author for this post.
-
AuthorPosts
Find exclusive trading pro-tools on