Support Board
Date/Time: Sat, 01 Feb 2025 12:56:53 +0000
[Programming Help] - Referencing Other Time Frames and Symbols When Using the ACSIL
View Count: 969
[2019-07-13 16:59:13] |
User722856 - Posts: 78 |
Dear Sirs, I have a simple ACSIL Study which i need to run on daily timeframe. Now i want to achieve to display this Study on a lower timeframe, for example 5 min. I read an tried all of the examples mentioned here: Referencing Other Time Frames and Symbols When Using the ACSIL ...but still i am missing something, beacause it simply does not work. Please find bellow my code. When using the Study/Price Overlay i achhieve the desired result, but i want to do it with ACSIL. Any input would be very much appreciated. Thanks in advance SCSFExport scsf_ReferenceStudyDataChart(SCStudyInterfaceRef sc)
{ SCInputRef StudySubgraphReference = sc.Input[0]; if (sc.SetDefaults) { sc.GraphName = "Reference Study Data from Chart"; sc.StudyDescription = "This study function is an example of referencing data from other studies on the chart."; sc.AutoLoop = 0; sc.GraphRegion = 0; StudySubgraphReference.Name = "Study And Subgraph To Display"; StudySubgraphReference.SetChartStudySubgraphValues(4, 1, 2); //Set this to the corresponding (chart #, study#, subgraph#) where the study is //During development set this flag to 1, so the DLL can be rebuilt without restarting Sierra Chart. When development is completed, set it to 0 to improve performance. sc.FreeDLL = 1; return; } //===================================================================================================================== //Section 2 - Do data processing here //=====================================================================================================================/ SCFloatArray StudyReference; sc.GetStudyArrayFromChartUsingID(StudySubgraphReference.GetChartNumber(), StudySubgraphReference.GetStudyID(), StudySubgraphReference.GetSubgraphIndex(), StudyReference); } Date Time Of Last Edit: 2019-07-13 17:00:58
|
[2019-07-15 20:34:52] |
User722856 - Posts: 78 |
any hint in the right direction would be very much appreciated. thanks in advance... |
[2019-07-17 02:53:16] |
Sierra Chart Engineering - Posts: 104368 |
The Study/Price Overlay study is very complex in its implementation. It would be a lot of work to achieve that with ACSIL. You really just need to use that study.
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: