Login Page - Create Account

Support Board


Date/Time: Sun, 12 Jan 2025 10:39:40 +0000



Advanced studies - is it possible to detect the time and price of an existing chart drawing?

View Count: 831

[2017-02-07 20:07:44]
User99606 - Posts: 9
I'd like to trigger a trade when price intersects a ray that I've drawn on the chart and understand that this will require some programming to achieve. I am not asking for programming help beyond figuring out if what I want to do is even possible.

From what I can see from looking at the programming guide, the capabilities are there to have the study actually draw a ray, but I don't see anything that would allow my code to determine the time and price values of an existing ray.

Two questions:

Is it possible to code a study that can access an existing chart drawing's time and price value?

If not, is it possible for a custom study to allow me to create a chart drawing the same way I do with a normal drawing tool, or do I have to enter specific values in a dialog box to have the code draw the ray?

Thank you.
Date Time Of Last Edit: 2017-02-07 20:09:11
[2017-02-08 04:08:36]
Sierra Chart Engineering - Posts: 104368
You need to use this function to get a user drawn chart drawing:
Using Drawing Tools From an Advanced Custom Study: sc.GetUserDrawnChartDrawing()


To use drawing tools from an advanced custom study, refer to:
Using Drawing Tools From an Advanced Custom Study
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

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

Login

Login Page - Create Account