Login Page - Create Account

Support Board


Date/Time: Sat, 18 May 2024 10:42:29 +0000



Post From: GetACSDrawingByLineNumber not working?

[2017-10-10 18:31:38]
User436155 - Posts: 16
ok i create a horizontal line with attributes:
drawing_tool.AddAsUserDrawnDrawing = 1 ;
drawing_tool.AddMethod = UTAM_ADD_OR_ADJUST ;

after creating a line i can select it and move it to another price value on the chart.
then i want to change its color.

i select it with: sc.GetUserDrawingByLineNumber call
set a color with: drawing_tool.Color = RGB(200,200,255);
and applying the change with call: sc.UseTool( drawing_tool ) ;
(adding drawing_tool.AddAsUserDrawnDrawing = 1 ; drawing_tool.AddMethod = UTAM_ADD_OR_ADJUST ; does not change the result)

after those calls line has new color. but i can NOT select it and move it anymore.

what is wrong? how can i change color (or another attribute of line) without 'locking' the line? please help me. there is NO example about this. thank you very much !