Login Page - Create Account

Support Board


Date/Time: Tue, 04 Mar 2025 10:03:45 +0000



Post From: drawn line values for intermediary BarIndex

[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