Login Page - Create Account

Support Board


Date/Time: Fri, 26 Apr 2024 19:09:03 +0000



How to create a Custom Drawing Tool and associate it with Toolbar button?

View Count: 2166

[2014-08-18 18:02:18]
maxpi - Posts: 175
I cannot find documentation/example for creation of Custom Drawing Tool nor how to associate it with a button like CDT1 on the toolbar.. It's just a study that produces a tool drawing? A certain name will associate it with the proper button?
[2014-08-18 18:14:21]
Sierra Chart Engineering - Posts: 104368
This is not exactly supported.

The closest that Sierra Chart has is documented here:
https://www.sierrachart.com/index.php?page=doc/doc_MouseAndMenuInteractionFromACStudy.html
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
[2018-04-19 03:49:03]
User147461 - Posts: 33
I have a follow-up question to this thread of August 2014 for an update.

Is it now possible using ACSIL to create a 'Custom Drawing Tool' with an associated Toolbar Button?

If so, here is what I need it to do:
1) Click on a toolbar button to activate the custom drawing tool then single click on a chart to draw several lines
2) These lines will be a combination of horizontal, vertical and trend lines calculated within code from the point of click
3) Also need the ability to select the tool as a 'complete unit' on the chart and drag to new chart locations
In other words creating a Custom Drawing Tool that behaves the same as a built-in drawing tool.

Thank you!
[2018-04-19 19:29:02]
Sierra Chart Engineering - Posts: 104368
3) Also need the ability to select the tool as a 'complete unit' on the chart and drag to new chart locations
You should be able to do this if your custom study modifies the drawings all at once in response to some pointer action.

Refer to:
Advanced Custom Study Interaction With Menus, Control Bar Buttons, Pointer Events

Some of the order entry studies in /ACS_Source/OrderEntryStudies.cpp demonstrate how to use the Pointer interaction to modify a line.
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
Date Time Of Last Edit: 2018-04-19 19:30:29

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

Login

Login Page - Create Account