Login Page - Create Account

Support Board


Date/Time: Sat, 23 Nov 2024 10:42:25 +0000



ACSIL: short horizontal line tool

View Count: 2272

[2013-07-03 09:48:48]
tobi - Posts: 351
Hello ACSIL experts,

is it possible to create a tool, where I can put short horizontal lines on my chart (please see screenshot)?

I've been using the "Line" tool so far, but it would be a lot easier/faster to have a predefined short horizontal line tool to use. This line should be four bars long and horizontal.

Is something like that possible to create with ACSIL and would someone be willing to help?

Thanks in advance,
tobi



imageshort_h-line.png / V - Attached On 2013-07-03 09:41:08 UTC - Size: 26.53 KB - 694 views
[2013-07-04 01:34:16]
StevieD - Posts: 39
This can be done in ACSIL. It involves a drawing tool and requires capturing toolbar button and/or mouse pointer events and attaching the code to an ACS tool button and/or right-click menu. IMO it's not worth the time to write and test.

As a really easy alternative, I thought you could save a line tool config. But for the line tool, only the cosmetics (color, linewidth, end markers, extensions, etc) are saved as a configuration. Length (or location anchors), slope, etc are not saved in a line tool configuration. So that's not an option.

If it was me, I would keep a line, sized and sloped as you desire, in an out of the way area of your chart. When needed, just "copy and move". (Select the line -> right-click -> select copy and move menu item). To change colors you can 1) use a saved tool config (which has toolbar buttons), 2) change the drawing properties directly, or 3) have multiple items in the out of the way area to copy.

Hope that helps.


[2013-07-04 09:12:52]
tobi - Posts: 351
Thanks for your detailed answer StevieD!
Will give your suggestion a try.
[2013-07-09 08:24:48]
tobi - Posts: 351
For anyone interested, with a hint from SC I came across the perfect solution:
The Marker tool, with tool type "dash" can be setup as desired.

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

Login

Login Page - Create Account