Login Page - Create Account

Support Board


Date/Time: Fri, 27 Dec 2024 11:17:45 +0000



[User Discussion] - Deleting all objects

View Count: 2220

[2015-05-28 12:44:22]
User34124 - Posts: 279
Consider this. A user has drawn many objects on his/her charts. Let's say 40 rectangles and 20 lines. How does the user delete all of them quickly and efficiently?
[2015-05-28 16:14:48]
Sierra Chart - Max - Posts: 5769
Select Tools >> Erase All Non-Text Drawings. Refer to the documentation here:
https://www.sierrachart.com/index.php?page=doc/doc_Tools.html#ErasingChartDrawings
Sierra Chart Support
[2015-06-02 10:44:14]
User34124 - Posts: 279
Incorrect. That function only deletes the objects on the chart which is currently open. I'm talking about ALL objects, on ALL charts.
[2015-06-02 12:09:53]
JingIt - Posts: 44
On Manage Chart Drawings Window, you select the top one then shift to the bottom, then click delete, this is for all charts of chart book
image2015-06-02_2203.png / V - Attached On 2015-06-02 12:04:03 UTC - Size: 47.08 KB - 391 views
[2015-06-02 15:39:04]
User34124 - Posts: 279
Thanks. Sadly under the category 'All', the box is empty where objects should be listed, despite having multiple objects on my charts
[2015-06-02 15:52:55]
Sierra Chart Engineering - Posts: 104368
The Manage Chart Drawings Window only applies to a single chart. What you are looking for is not supported and is not planned.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2015-06-02 20:11:58]
User34124 - Posts: 279
Guessed as much. Unbelievably tedious for traders who do not want to use third party bypasses such as AHK
[2015-06-02 21:59:46]
Jeffrey - Posts: 2187
You could probably get through the process pretty quickly by combining use of the keyboard shortcuts for Erase All Non-Text Drawings (Alt+Shift+L) and Next Chart (F9). You could reassign the keyboard shortcuts (Global Settings >> Customize Keyboard Shortcuts) to make it even more convenient. Or use a toolbar button for one or both of those.
[2015-06-03 03:24:19]
Kiwi - Posts: 375
Good idea Jeffrey.

With Linux I could write a zsh script to step through that sequence 40 or 50 times.

If I was still in windows I could do it with a good macro writer. That would work 34124 ... delete, pause, change charts, pause, rinse and repeat.
[2015-06-03 06:04:31]
User34124 - Posts: 279
Yep I can share my AHK macro for anyone who requires it. The inconsistency which becomes even more unnecessarily tedious is the number of F9s to press varying per chart book, so you always end up on a different chart to the one you began the script on...

Obviously this is dependent on chartbooks having an asimilar amount of charts in them, which begins to trespass into stupid territory of assigning one hotkey/script for each chartbook and then trying to remember them!
[2015-06-03 07:32:36]
Kiwi - Posts: 375
Its a while since I last used AHK. When I tried to shift to linux the first time it was something I missed - then I discovered Autokey which is very similar but you write in Python instead. Doesn't AHK have the ability to read the windows properties?

I know with linux and wine, if I maximize the window the contract name is in the main window properties (so can easily be picked up with xprop or autokey).

I am spoilt because I just trade HSI but if I had a lot of windows (variable number) I'd add an extra step. Read the initial window name, then start the loop (with some maximum number of iterations). When the window name is the same as the initial window stop iterating.
Date Time Of Last Edit: 2015-06-03 07:36:28
[2015-06-03 12:15:40]
User34124 - Posts: 279
Yeah something like that would be great.. God knows where I'd begin with AHK calling sub-windows..

HSI, very volatile or ok for intraday?
[2015-06-03 13:17:23]
Kiwi - Posts: 375
HSI is fairly volatile but rarely boring. It's a great day trading contract and there's a mini called MHI for practice.

If I was doing it with ahk I'd start with the maximise window command (alt shift x?) then read the SC (whole) window title with https://www.autohotkey.com/docs/commands/WinGetTitle.htm and save the text.

Then delete drawings, pause, F9

Then compare the result of WinGetTitle with the saved text repeating until they're the same.

Finally issue the SC window restore command to unmaximize them.
[2015-06-03 13:42:35]
User34124 - Posts: 279
Great thanks. Will have a go when I get to my desktop

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account