Support Board
Date/Time: Sat, 01 Feb 2025 15:56:45 +0000
Post From: Referencing Other Time Frames and Symbols When Using the ACSIL
[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
|