Login Page - Create Account

Support Board


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



Post From: sc.DeleteACSChartDrawing Problems

[2015-02-28 08:25:28]
CustomIndicators - Posts: 126
I'm working on an advanced custom study, and have come across a problem that I'm having trouble fixing. This part of the code, is intended to delete a chart drawing using an else statement.

My else code:
else {
  sc.DeleteACSChartDrawing(0, TOOL_DELETE_CHARTDRAWING, 854654);
  sc.DeleteACSChartDrawing(0, TOOL_DELETE_CHARTDRAWING, 485691);
}

My error from the compiler:

C:\SierraChart\ACS_Source\Custom_Code_Testing.cpp: In function 'void scsf_Custom(SCStudyInterfaceRef)':
C:\SierraChart\ACS_Source\Custom_Code_Testing.cpp:295:9: error: 'struct s_sc' has no member named 'DeleteACSChartDrawing'
sc.DeleteACSChartDrawing(0, TOOL_DELETE_CHARTDRAWING, 789456);
^
C:\SierraChart\ACS_Source\Custom_Code_Testing.cpp:296:9: error: 'struct s_sc' has no member named 'DeleteACSChartDrawing'
sc.DeleteACSChartDrawing(0, TOOL_DELETE_CHARTDRAWING, 123456);
^
-- End of Build -- 01:12:07


Is sc.DeleteACSChartDrawing() still supported? If so, what exactly am I doing wrong?
Should I be using some other method of deleting the drawing?

The goal, is to have these two lines flicking on and off, based on if they are true or not at the moment. Fluctuations are caused by bar 0 (sc.Index).