Support Board
Date/Time: Sat, 01 Feb 2025 15:44:00 +0000
Post From: ACSIL - Only three Subrahps are being displayed on Chart
[2019-07-12 13:05:09] |
Ackin - Posts: 1865 |
[4] was ignored (as DRAWSTYLE) SCSFExport scsf_ExampleSubgraph(SCStudyInterfaceRef sc)
{ if (sc.SetDefaults) { // Set the configuration and defaults sc.GraphName = "Subgraph Example"; sc.StudyDescription = "This is an example of using manual looping in Subgraph."; sc.AutoLoop = 0; // 0 is the default: there is no auto-looping sc.GraphRegion = 0; // Use the main price graph region (0 means Chart Region 1, 1 means Chart Region 2, maximum value can be 7=Region 8) sc.Subgraph[1].Name = "High-Min"; sc.Subgraph[1].DrawStyle = DRAWSTYLE_LINE; sc.Subgraph[2].Name = "High-Max"; sc.Subgraph[2].DrawStyle = DRAWSTYLE_LINE; sc.Subgraph[3].Name = "Low-Min"; sc.Subgraph[3].DrawStyle = DRAWSTYLE_LINE; sc.Subgraph[4].Name = "Low-Max"; sc.Subgraph[4].DrawStyle = DRAWSTYLE_LINE; return; } // Do data processing for (int Index = sc.UpdateStartIndex; Index < sc.ArraySize; Index++) { //================================================================================ // Calculate the Upper Range (from Daily Low) //================================================================================ // Calculate the Upper Range (from Daily Low) - High-Min: sc.Subgraph[1][Index] = sc.BaseData[SC_LOW][Index] + 20; // Calculate the Upper Range (from Daily Low) - High-Max: sc.Subgraph[2][Index] = sc.BaseData[SC_LOW][Index] + 40; //================================================================================ // Calculate the Lower Range (from Daily High) //================================================================================ // Calculate the Lower Range (from Daily High) - Low-Min: sc.Subgraph[3][Index] = sc.BaseData[SC_HIGH][Index] - 20; // Calculate the Lower Range (from Daily High) - Low-Max: sc.Subgraph[4][Index] = sc.BaseData[SC_HIGH][Index] - 40; } } Date Time Of Last Edit: 2019-07-12 13:08:12
|