Login Page - Create Account

Support Board


Date/Time: Thu, 02 May 2024 10:18:18 +0000



[User Discussion] - Help needed with custom indicator

View Count: 984

[2015-06-01 09:03:31]
Sebastian_M - Posts: 70
Hello expert coders,

The image represents what I am trying to do.

I drew somw of the code fom here.
http://www.sierrachart.com/index.php?page=doc/doc_ACSIL_Members_scInputs.html

I am struggling to build this file. I know I am missing an initializer, but do not have the experience to solve it.

-- Starting build of Custom Studies Source files: Seb_TrendpointHigh3.cpp. -- 09:42:45

"C:\SierraChart\CPPCompiler\bin\g++.exe" "C:\SierraChart\ACS_Source\Seb_TrendpointHigh3.cpp" -march=i686 -mtune=i686 -O2 -shared -static -static-libgcc -static-libstdc++ -s -fno-rtti -fno-exceptions -o "C:\SierraChart\Data\Seb_TrendpointHigh3.dll"

C:\SierraChart\ACS_Source\Seb_TrendpointHigh3.cpp:7:1: error: expected initializer before 'SCInputRef'
SCInputRef Length = sc.Input[0];
^
C:\SierraChart\ACS_Source\Seb_TrendpointHigh3.cpp:8:1: error: expected unqualified-id before '{' token
{
^
-- End of Build -- 09:42:46

Would appreciate any help
Regards Sebastian

Date Time Of Last Edit: 2015-06-02 09:11:14
imageExample_high_lows.jpg / V - Attached On 2015-06-01 08:58:55 UTC - Size: 179.51 KB - 343 views
[2015-06-01 09:49:36]
Sierra Chart Engineering - Posts: 104368
The code needs to be like this in the beginning:

#include "sierrachart.h"


SCDLLName("Seb_TrendpointHigh3")

SCSFExport scsf_Seb_TrendpointHigh3(SCStudyGraphRef sc)
{

SCInputRef Length = sc.Input[0];

if (sc.SetDefaults)
{

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: 2015-06-01 09:51:43
[2015-06-01 19:51:48]
Sebastian_M - Posts: 70
Thank you support,

But I still do not have the horizontal lines into the future as in the chart?

Is this possible?

Thank you in advance
imageExample_high_lows2.jpg / V - Attached On 2015-06-01 19:50:47 UTC - Size: 181.46 KB - 304 views
[2015-06-01 20:30:59]
Sierra Chart Engineering - Posts: 104368
Refer to this sc.Subgraph[] member:
https://www.sierrachart.com/index.php?page=doc/doc_ACSIL_Members_scSubgraph.html#scExtendedArrayElementsToGraph

If this does not answer your question, then this is outside the scope of our support.
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: 2015-06-01 20:31:43
[2015-06-01 21:07:49]
Sebastian_M - Posts: 70
Hi support,

could not get it to work.
Thanks anyway
[2015-06-01 21:50:34]
Sierra Chart Engineering - Posts: 104368
The only thing that we can add is that you need to set the elements of a sc.Subgraph[].Data[] array to the values of the line where you want to see the line. This page should help:
http://www.sierrachart.com/index.php?page=doc/doc_ACS_ArraysAndLooping.html
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: 2015-06-01 23:01:37
[2015-06-01 22:51:06]
SgtJ - Posts: 154
I can likely help you. I can pm you on bigmikes if available or post your email if interested.
[2015-06-02 08:33:51]
Sebastian_M - Posts: 70
Hi SgtJ

my email is:

Email removed

until 21:00 BST London time 02/06/2015 when I will delete it from this post.

Regards Seb
Date Time Of Last Edit: 2015-06-02 13:11:00
[2015-06-02 12:46:08]
SgtJ - Posts: 154
Ok, got it. You can delete it asap.

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

Login

Login Page - Create Account