Support Board
Date/Time: Sat, 18 Jan 2025 07:59:02 +0000
Advanced custom study
View Count: 2624
[2018-01-02 17:06:16] |
User558377 - Posts: 31 |
I have some advanced custom studies that were developed some years ago. They worked like a charm but now they won't compile. My developer is busy at the moment but he looked at the error log and seems to think that you guys must have had some changes to the syntax. Can you point me to some documentation that might help us figure it out? Thank you and happy new year to all. Here is the error. I would be willing to pay for phone and or remote support if that is an option. Thank you -- Starting remote build of Custom Studies Source files: ActiveMatrixDelux_v7m6.cpp. -- 18:41:49 Allow time for the server to compile the files and build the DLL. The remote build did not succeed. Result: ActiveMatrixDelux_v7m6.cpp:7:10: error: expected constructor, destructor, or type conversion before '(' token SCDLLInit("ActiveMatrixDelux v7m6") ^ ActiveMatrixDelux_v7m6.cpp: In function 'void scsf_ActiveMatrixDelux(SCStudyInterfaceRef)': ActiveMatrixDelux_v7m6.cpp:82:29: error: 'DRAWSTYLE_DONOTDRAW' was not declared in this scope sg.Subgraph[2].DrawStyle = DRAWSTYLE_DONOTDRAW; // Here we set our default 'DrawStyle' to point ^ -- End of Build -- 18:41:53 Date Time Of Last Edit: 2018-01-02 17:07:23
|
[2018-01-02 19:07:39] |
Sierra Chart Engineering - Posts: 104368 |
Change this line from: SCDLLInit("ActiveMatrixDelux v7m6") To: SCDLLName("ActiveMatrixDelux v7m6") Change: DRAWSTYLE_DONOTDRAW To: DRAWSTYLE_HIDDEN Let us know if you need more help. 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 Date Time Of Last Edit: 2018-01-02 19:07:49
|
[2018-01-02 19:34:07] |
User558377 - Posts: 31 |
Thank you for the reply. I seem to have gotten further but still no success. Here is my current error. -- Starting remote build of Custom Studies Source files: ActiveMatrixDelux_v7m6.cpp. -- 11:31:32 Allow time for the server to compile the files and build the DLL. The remote build did not succeed. Result: ActiveMatrixDelux_v7m6.cpp:12:26: fatal error: sierrachart.h : No such file or directory #include <sierrachart.h > ^ compilation terminated. -- End of Build -- 11:31:35 |
[2018-01-02 19:47:37] |
Sierra Chart Engineering - Posts: 104368 |
This has a space at the end: #include <sierrachart.h > It needs to be: #include <sierrachart.h> 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 |
[2018-01-02 19:49:50] |
User558377 - Posts: 31 |
Thank you and fyi i copied and pasted that from your website. It's not a criticism just fyi. Advanced Custom Study Interface and Language (ACSIL): Step-By-Step Instructions to Create an Advanced Custom Study Function |
[2018-01-02 19:52:02] |
User558377 - Posts: 31 |
I made the change and still getting an error... -- Starting remote build of Custom Studies Source files: ActiveMatrixDelux_v7m6.cpp. -- 11:51:10 Allow time for the server to compile the files and build the DLL. The remote build did not succeed. Result: ActiveMatrixDelux_v7m6.cpp:12:25: fatal error: sierrachart.h: No such file or directory #include <sierrachart.h> ^ compilation terminated. -- End of Build -- 11:51:13 |
[2018-01-02 19:54:59] |
Sierra Chart Engineering - Posts: 104368 |
OK that was in step 6. This is now corrected: Advanced Custom Study Interface and Language (ACSIL): Step-By-Step Instructions to Create an Advanced Custom Study Function 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 |
[2018-01-02 19:56:18] |
Sierra Chart Engineering - Posts: 104368 |
Change it to: #include "sierrachart.h" 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 |
[2018-01-02 20:01:42] |
User558377 - Posts: 31 |
Still getting an error... thanks for the help tho -- Starting remote build of Custom Studies Source files: ActiveMatrixDelux_v7m6.cpp. -- 12:00:07 Allow time for the server to compile the files and build the DLL. The remote build did not succeed. Result: ActiveMatrixDelux_v7m6.cpp:13:14: error: expected constructor, destructor, or type conversion before '(' token CustomDLLName("ActiveMatrixDelux v7m6") ^ -- End of Build -- 12:00:11 |
[2018-01-02 20:05:02] |
Sierra Chart Engineering - Posts: 104368 |
In regards to: CustomDLLName("ActiveMatrixDelux v7m6") Where did you get CustomDLLName from? It should be as was previously said: SCDLLName("ActiveMatrixDelux v7m6") 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 |
[2018-01-02 20:08:22] |
Sierra Chart Engineering - Posts: 104368 |
OK we see CustomDLLName is used in the documentation. We will add support for that particular identifier name as well.
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 |
[2018-01-02 20:09:19] |
User558377 - Posts: 31 |
I see what you mean. I made the correction. Here is the latest error ... -- Starting remote build of Custom Studies Source files: ActiveMatrixDelux_v7m6.cpp. -- 12:08:05 Allow time for the server to compile the files and build the DLL. The remote build did not succeed. Result: In file included from sierrachart.h:15:0, from ActiveMatrixDelux_v7m6.cpp:2: ActiveMatrixDelux_v7m6.cpp: In function 'int scdll_DLLVersion()': scstructures.h:100:28: error: redefinition of 'int scdll_DLLVersion()' SCDLLEXPORT int SCDLLCALL scdll_DLLVersion() { return SC_DLL_VERSION; } \ ^ ActiveMatrixDelux_v7m6.cpp:13:1: note: in expansion of macro 'SCDLLName' SCDLLName("ActiveMatrixDelux v7m6") ^ scstructures.h:100:28: note: 'int scdll_DLLVersion()' previously defined here SCDLLEXPORT int SCDLLCALL scdll_DLLVersion() { return SC_DLL_VERSION; } \ ^ ActiveMatrixDelux_v7m6.cpp:7:1: note: in expansion of macro 'SCDLLName' SCDLLName("ActiveMatrixDelux v7m6") ^ ActiveMatrixDelux_v7m6.cpp: In function 'const char* scdll_DLLName()': scstructures.h:101:36: error: redefinition of 'const char* scdll_DLLName()' SCDLLEXPORT const char* SCDLLCALL scdll_DLLName() { return DLLName; } ^ ActiveMatrixDelux_v7m6.cpp:13:1: note: in expansion of macro 'SCDLLName' SCDLLName("ActiveMatrixDelux v7m6") ^ scstructures.h:101:36: note: 'const char* scdll_DLLName()' previously defined here SCDLLEXPORT const char* SCDLLCALL scdll_DLLName() { return DLLName; } ^ ActiveMatrixDelux_v7m6.cpp:7:1: note: in expansion of macro 'SCDLLName' SCDLLName("ActiveMatrixDelux v7m6") ^ -- End of Build -- 12:08:10 |
[2018-01-02 20:14:28] |
Sierra Chart Engineering - Posts: 104368 |
Make sure there is only one SCDLLName in the source code file.
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 |
[2018-01-02 20:30:44] |
User558377 - Posts: 31 |
thank you thank you thank you molto bene bellisimo happy new year I may need help with some others one at a time |
[2018-01-02 20:42:37] |
User558377 - Posts: 31 |
Here is anotherin ... when you get a splecond -- Starting remote build of Custom Studies Source files: SolarisSystemTest8.cpp. -- 12:41:10 Allow time for the server to compile the files and build the DLL. The remote build did not succeed. Result: SolarisSystemTest8.cpp: In function 'void scsf_SolarisSystemTest8(SCStudyInterfaceRef)': SolarisSystemTest8.cpp:38:6: error: 'struct s_sc' has no member named 'ReferencesOtherChart' sg.ReferencesOtherChart = 1; ^ -- End of Build -- 12:41:15 |
[2018-01-02 21:10:33] |
User558377 - Posts: 31 |
I think i get whats going on. I'll come back if i get stuck.
|
[2018-01-15 15:06:52] |
User558377 - Posts: 31 |
I spoke with my developer. Hes has no idea why it won't compile. This is code that used to work. Can you guys help? I'm happy to pay for phone support or whatever it takes. Thank you. -- Starting remote build of Custom Studies Source files: MultiChart_v3m1.cpp. -- 07:06:09 Allow time for the server to compile the files and build the DLL. The remote build did not succeed. Result: MultiChart_v3m1.cpp: In function 'void scsf_MultiChart(SCStudyInterfaceRef)': MultiChart_v3m1.cpp:38:6: error: 'struct s_sc' has no member named 'ReferencesOtherChart' sg.ReferencesOtherChart = 1; ^ -- End of Build -- 07:06:13 |
[2018-01-15 17:29:42] |
Sierra Chart Engineering - Posts: 104368 |
This code must be really old. How is it that you are using this variable?: sg.ReferencesOtherChart 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 |
[2018-01-16 04:13:18] |
User558377 - Posts: 31 |
I just submited the log for analysis. Thank you
|
[2018-01-16 05:05:12] |
Sierra Chart Engineering - Posts: 104368 |
We actually remember that ACSIL variable. It really is old and from many many years ago. Just remove it. It is no longer needed. 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 |
[2018-01-20 13:03:17] |
User558377 - Posts: 31 |
I'm having an issue where the chart is no longer plotting arrows on chart region 1. I submitted a log for review. I don't know if that was the right approach. Let me know what I can do. It's old code that used to work it seems that I'm using outdated syntax. I tried this DRAWSTYLE_ARROW_DOWN to no avail. Thanks for the help. p.s. this is an advanced custom study we made
Date Time Of Last Edit: 2018-01-20 13:04:36
|
[2018-01-20 18:28:15] |
Sierra Chart Engineering - Posts: 104368 |
This is clearly something that you need to figure out and determine on your side. This is not within the scope of our support. A Message Log here is meaningless. For programming help, refer to: https://www.sierrachart.com/index.php?page=doc/SierraChartStudyAndSystemProgrammers.php Although we recommend looking at some examples. Look at the examples in TradingSystem.cpp which also use arrows. And refer to the ACSIL documentation: ACSIL Interface Members - sc.Subgraph Array Also there have been no changes with working with study Subgraphs. Those are the same as always. 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 |
[2018-01-23 21:31:36] |
User558377 - Posts: 31 |
sg.CrossOver pardon my lack of knowledge. Is this still used? |
[2018-01-23 21:37:00] |
User558377 - Posts: 31 |
were trying to figure out if some functions have been changed. Like you said the code is old. Do you see anything wrong here? Thank you kindly SCFloatArray TRIXSmallLengthSubgraphArray; sg.GetStudyArray(1, 5, TRIXSmallLengthSubgraphArray); |
[2018-01-23 22:11:21] |
Sierra Chart Engineering - Posts: 104368 |
Here is the documentation for these functions: sc.CrossOver() sc.GetStudyArray() However, you may just want to calculate that study directly: sc.TRIX() 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 |
To post a message in this thread, you need to log in with your Sierra Chart account: