Support Board
Date/Time: Mon, 25 Nov 2024 15:18:42 +0000
Post From: Referencing other charts
[2014-02-04 22:45:50] |
vegasfoster - Posts: 444 |
Hi, revised the code as indicated, but I am still having same exact problem. I know I am missing something obvious, I just can't figure it. Sorry, thanks again for any help. #include "sierrachart.h" SCDLLName("MTFStudyAverageV2") /*==========================================================================*/ SCSFExport scsf_MTFStudyAverageV2(SCStudyInterfaceRef sc) { SCSubgraphRef Average = sc.Subgraph[0]; if (sc.SetDefaults) { sc.GraphName = "MTF Study Average"; sc.FreeDLL = 1; sc.AutoLoop = 1; sc.CalculationPrecedence = LOW_PREC_LEVEL; Average.Name = "Study Average"; Average.DrawStyle = DRAWSTYLE_LINE; Average.LineWidth = 2; Average.PrimaryColor = RGB(0,0,0); //sc.Input[0].Name = "Chart Number 1";; //sc.Input[0].SetInt(2); //sc.Input[1].Name = "Study ID 1"; //sc.Input[1].SetInt(1); sc.Input[0].SetChartStudyValues(2, 1); return; } int ChartNumber = sc.Input[0].GetChartNumber(); int StudyID = sc.Input[0].GetStudyID(); SCGraphData StudyData; sc.GetStudyArraysFromChartUsingID(ChartNumber, StudyID, StudyData); if(StudyData.GetArraySize() == 0) return; SCFloatArrayRef SubgraphArray = StudyData[0]; if(SubgraphArray.GetArraySize() == 0) return; Average[sc.Index] = SubgraphArray[sc.Index]; } Date Time Of Last Edit: 2014-02-04 22:47:24
|
MTFADX.cht - Attached On 2014-02-04 22:42:59 UTC - Size: 95.67 KB - 459 views MTFStudyAverageV2.cpp - Attached On 2014-02-04 22:47:20 UTC - Size: 1.14 KB - 459 views |