Login Page - Create Account

Support Board


Date/Time: Wed, 15 Jan 2025 17:02:30 +0000



Replacing sc.Subgraph by sc.Subgraph.Array

View Count: 829

[2017-06-26 20:45:50]
rhovega - Posts: 279
I ran out of subgraphs on a trading system, and thought to replace some sc.Subgraph by sc.Subgraph.Array to increase the number of available Subgraphs. I can't get it to work.

For example I changed the following:

    SCSubgraphRef ED_TSISub = sc.Subgraph[42];
   sc.Ergodic(sc.BaseData[SC_LAST],ED_TSISub, 30, 10, 1);  

To:

    SCSubgraphRef ED_IndicsSub = sc.Subgraph[42];
    sc.Ergodic(sc.BaseData[SC_LAST],ED_IndicsSub.Arrays[0], 30, 10, 1);  

I get error "error C2664: 'SCFloatArrayRef s_sc::Ergodic(SCFloatArrayRef,SCSubgraphRef,int,int,float)': cannot convert argument 2 from 'SCFloatArray' to 'SCSubgraphRef'"

Can it be that studies with multiple outputs (e.g. RSI, MACD, TSI ... most of them) must have a Subgraph as main output, and that is the reason for the error?
Date Time Of Last Edit: 2017-06-26 20:51:46
[2017-06-26 20:56:34]
Sierra Chart Engineering - Posts: 104368
The documentation for all of the ACSIL intermediate study functions explains this subject.

Read it over.
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
[2017-06-26 20:57:41]
rhovega - Posts: 279
I just read it over 5 times. I don't ask without reading documentation before.
[2017-06-26 21:01:20]
Sierra Chart Engineering - Posts: 104368
Here is the documentation for the function referenced:
sc.Ergodic()
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
[2017-06-26 21:03:50]
Sierra Chart Engineering - Posts: 104368
Also refer to:
https://www.sierrachart.com/index.php?page=doc/ACSIL_Members_Functions.html#ArrayNotes
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:

Login

Login Page - Create Account