Login Page - Create Account

Support Board


Date/Time: Thu, 18 Apr 2024 07:07:32 +0000



Post From: sc.DeleteACSChartDrawing()

[2019-12-10 22:00:02]
User145885 - Posts: 15
Hello. I am trying to delete the drawings on a different chart but I can not.
I understand that using the sc.UseTool() function and s_UseTool::AddAsUserDrawnDrawing = 1 and specifying the chart Number you can draw on other chart without a problem.(Using Drawing Tools From an Advanced Custom Study: sc.GetUserDrawnChartDrawing())
I understantand that using this line of code
int Result = sc.DeleteACSChartDrawing(sc.Input[6].GetInt(),TOOL_DELETE_ALL,0);
you can delete the lines on the chart that you put the study on.It works.
The part that is not working or I dont know how to do it is how to delete the lines draw by the code on the other chart
I understand that you instead using TOOL_DELETE_ALL you supposedly should use TOOL_DELETE_CHARTDRAWING if you want to delete on the other chart as long as you specify the chart number and the line number.Well is not working for me plus additionally what happen if you have several lines instead of an unique line number.How to you do it.
2) Also if it is not too much to ask. Is it possible to declare an array of persistent variables and if so. How can I do it.?
Your assistance will be much appreciated