You have a set of 4 charts open - a 240 minute, a 15 minute, a 3 minute, and a 1 minute. The 240 minute chart is showing the last 15 days. The 15 minute is showing the last day of data, the 3 minute is showing the past few hours, and the 1 minute is showing the past hour. (This is the visible area that is shown, not how many bars back the data series is looking.)
If you have the 3 smaller charts set to "Show global draw objects = true", and the 240 minute has that setting at "False", then when you draw a line on the 15 minute chart, it will also appear on the 3 minute and the 1 minute, but not the 240 minute. This is fine.
In order to make the draw object show up in the proper spot on all three of the smaller time frame charts, you need to make sure that they have a sufficient number of bars in the data series, otherwise it won't plot properly. So for example, if you wanted to make sure that every line you drew on the 15 minute chart showed up in the correct spot on the 1 minute and the 3 minute, you would have to set the lookback period to 1440 bars on the 1 minute and 480 bars on the 3 minute, since that would be a full day's worth of data and the 15 minute is showing that much in its visible area. Even if the 3 and the 1 minute are only showing the past few hours of data, you still need that many bars in the series so the plot shows up correctly. So far, so good.
The problem arises with the 240 minute chart. Even though that chart has "Global draw objects" set to false, when you draw a line on it, it still tries to show up on the lower time frame charts. This is a problem because those charts are only looking over 1 day worth of data, whereas the 240 minute chart is looking back over 15 days. If you don't want to have lines showing up on the 15/3/1 minute charts in the wrong spot whenever you draw a line on the 240 minute chart, you therefore basically only have two options:
1. You can set the lookback period on the smaller time-frame charts to reach back over 15 days. This would draw the longer-term trendlines correctly from the 240 minute chart... but it consumes more computing resources, and is a waste of CPU cycles. It makes everything slower unnecessarily.
2. You could turn the global draw objects settings off on the smaller time frame charts and make every chart plot objects individually. This would also solve the problem, but unfortunately you now can't get a global drawing object to appear on the 15/3/1 minute charts, which is what you really wanted in the first place.
The solution is to change how the Global Draw settings works. When a chart has this setting to False, you should make sure that anything that is drawn ONLY shows up on that chart, and not any others. That way you could still have the 3 smaller time frame charts operate as a global group, and also draw longer-term lines on the 240 minute chart, without having those lines show up in the wrong spot on the smaller charts. There are other solutions you could think of, this is just an easy one that occurred to me. Any thoughts?
Comment