Support Board
Date/Time: Tue, 04 Mar 2025 06:54:00 +0000
drawn line values for intermediary BarIndex
View Count: 541
[2021-11-27 23:43:24] |
User843333 - Posts: 14 |
After drawing a line between BarIndex 1000 and BarIndex 2000, how can I find the intermediate values, for example in BarIndex 1500 how can I find out the value on the graph that the drawn line has, so that I can compare it with other graphs or with sc.High for example the BarIndex 1500? s_UseTool Tool; Tool.Clear(); Tool.ChartNumber = sc.ChartNumber; Tool.LineNumber = 5555; Tool.DrawingType = DRAWING_LINE; Tool.LineStyle = LINESTYLE_SOLID; Tool.LineWidth = 1; Tool.Color = COLOR_RED; Tool.BeginDateTime = sc.BaseDateTimeIn[1000]; Tool.EndDateTime = sc.BaseDateTimeIn[2000]; Tool.BeginValue = sc.High[1000]; Tool.EndValue = sc.High[2000]; Tool.Region = 0; Tool.AddMethod = UTAM_ADD_ALWAYS; sc.UseTool(Tool); thx for help |
[2021-11-29 17:01:16] |
John - SC Support - Posts: 38341 |
You would have to do the calculation in your code and determine the Slope and Y-Intercept and then solve the equation for a straight line (y = mx + b).
For the most reliable, advanced, and zero cost futures order routing, use 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: