Login Page - Create Account

Support Board


Date/Time: Thu, 02 May 2024 00:26:03 +0000



SetACSToolEnable not working since version 9

View Count: 560

[2019-10-06 10:04:51]
User401662 - Posts: 16
Hi,

It seems the function
SetACSToolEnable
has been replaced with something else since version 9 and I am not able to build my study anymore (see the build output below).

Please help.

---------------------

-- Starting remote build of Custom Studies Source files: tradingManagement_test.cpp. 64-bit -- 11:49:57
Allow time for the server to compile the files and build the DLL.

The remote build did not succeed. Result:

tradingManagement_test.cpp: In function 'void scsf_EnterWithMaxStopLoss(SCStudyInterfaceRef)':
tradingManagement_test.cpp:185:6: error: 'struct s_sc' has no member named 'SetACSToolEnable'
sc.SetACSToolEnable(ACS_BUTTON_1, false);

^
tradingManagement_test.cpp:186:6: error: 'struct s_sc' has no member named 'SetACSToolEnable'
sc.SetACSToolEnable(ACS_BUTTON_2, false);

^
tradingManagement_test.cpp:187:6: error: 'struct s_sc' has no member named 'SetACSToolEnable'
sc.SetACSToolEnable(ACS_BUTTON_3, false);

^
tradingManagement_test.cpp:328:8: error: 'struct s_sc' has no member named 'SetACSToolEnable'
sc.SetACSToolEnable(ACS_BUTTON_1, false);

^
tradingManagement_test.cpp:399:8: error: 'struct s_sc' has no member named 'SetACSToolEnable'
sc.SetACSToolEnable(ACS_BUTTON_2, false);

^
tradingManagement_test.cpp:413:8: error: 'struct s_sc' has no member named 'SetACSToolEnable'
sc.SetACSToolEnable(ACS_BUTTON_3, false);

^
tradingManagement_test.cpp: In function 'void scsf_EnterWithMaxStopLossAtHighOrLow(SCStudyInterfaceRef)':
tradingManagement_test.cpp:676:6: error: 'struct s_sc' has no member named 'SetACSToolEnable'
sc.SetACSToolEnable(ACS_BUTTON_1, false);

^
tradingManagement_test.cpp:677:6: error: 'struct s_sc' has no member named 'SetACSToolEnable'
sc.SetACSToolEnable(ACS_BUTTON_2, false);

^
tradingManagement_test.cpp:678:6: error: 'struct s_sc' has no member named 'SetACSToolEnable'
sc.SetACSToolEnable(ACS_BUTTON_3, false);

^
tradingManagement_test.cpp:885:8: error: 'struct s_sc' has no member named 'SetACSToolEnable'
sc.SetACSToolEnable(ACS_BUTTON_1, false);

^
tradingManagement_test.cpp:969:8: error: 'struct s_sc' has no member named 'SetACSToolEnable'
sc.SetACSToolEnable(ACS_BUTTON_2, false);

^
tradingManagement_test.cpp:983:8: error: 'struct s_sc' has no member named 'SetACSToolEnable'
sc.SetACSToolEnable(ACS_BUTTON_3, false);

^
tradingManagement_test.cpp: In function 'void scsf_EnterWithMaxStopLossAtHighOrLowV2Backup(SCStudyInterfaceRef)':
tradingManagement_test.cpp:1351:6: error: 'struct s_sc' has no member named 'SetACSToolEnable'
sc.SetACSToolEnable(ACS_BUTTON_1, false);

^
tradingManagement_test.cpp:1352:6: error: 'struct s_sc' has no member named 'SetACSToolEnable'
sc.SetACSToolEnable(ACS_BUTTON_2, false);

^
tradingManagement_test.cpp:1353:6: error: 'struct s_sc' has no member named 'SetACSToolEnable'
sc.SetACSToolEnable(ACS_BUTTON_3, false);

^
tradingManagement_test.cpp:1560:8: error: 'struct s_sc' has no member named 'SetACSToolEnable'
sc.SetACSToolEnable(ACS_BUTTON_1, false);

^
tradingManagement_test.cpp:1644:8: error: 'struct s_sc' has no member named 'SetACSToolEnable'
sc.SetACSToolEnable(ACS_BUTTON_2, false);

^
tradingManagement_test.cpp:1658:8: error: 'struct s_sc' has no member named 'SetACSToolEnable'
sc.SetACSToolEnable(ACS_BUTTON_3, false);

^
tradingManagement_test.cpp: In function 'void scsf_EnterWithMaxStopLossAtHighOrLowV2(SCStudyInterfaceRef)':
tradingManagement_test.cpp:2151:6: error: 'struct s_sc' has no member named 'SetACSToolEnable'
sc.SetACSToolEnable(ACS_BUTTON_1, false);

^
tradingManagement_test.cpp:2152:6: error: 'struct s_sc' has no member named 'SetACSToolEnable'
sc.SetACSToolEnable(ACS_BUTTON_2, false);

^
tradingManagement_test.cpp:2153:6: error: 'struct s_sc' has no member named 'SetACSToolEnable'
sc.SetACSToolEnable(ACS_BUTTON_3, false);

^
tradingManagement_test.cpp:2579:8: error: 'struct s_sc' has no member named 'SetACSToolEnable'
sc.SetACSToolEnable(ACS_BUTTON_1, false);

^
tradingManagement_test.cpp:2678:8: error: 'struct s_sc' has no member named 'SetACSToolEnable'
sc.SetACSToolEnable(ACS_BUTTON_1, false);

^
tradingManagement_test.cpp:2693:7: error: 'struct s_sc' has no member named 'SetACSToolEnable'
sc.SetACSToolEnable(ACS_BUTTON_3, false);

^
tradingManagement_test.cpp: In function 'void scsf_EnterWithMaxStopLossAtHighOrLowWithThreePortions(SCStudyInterfaceRef)':
tradingManagement_test.cpp:3158:6: error: 'struct s_sc' has no member named 'SetACSToolEnable'
sc.SetACSToolEnable(ACS_BUTTON_1, false);

^
tradingManagement_test.cpp:3159:6: error: 'struct s_sc' has no member named 'SetACSToolEnable'
sc.SetACSToolEnable(ACS_BUTTON_2, false);
[2019-10-06 10:15:16]
Sierra Chart Engineering - Posts: 104368
The new name is sc.SetCustomStudyControlBarButtonEnable
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2019-10-06 11:22:26]
User401662 - Posts: 16
Thank you.

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account