Support Board
Date/Time: Wed, 05 Feb 2025 18:00:06 +0000
Post From: Two studies with identical values plot differently
[2019-12-14 19:25:00] |
Blue Brazilian - Posts: 42 |
#include "sierrachart.h" #include "scstudyfunctions.h" SCDLLName("maLine") SCSFExport scsf_maLine(SCStudyInterfaceRef sc) { if (sc.SetDefaults) { // Set the configuration and defaults sc.GraphName = "MA Line"; sc.AutoLoop = 1; sc.GraphRegion = 0; sc.ScaleRangeType = SCALE_INDEPENDENT; sc.Subgraph[2].Name = "MA10"; sc.Subgraph[2].SecondaryColorUsed = 0; sc.Subgraph[2].PrimaryColor = RGB(255,0,255); sc.Subgraph[2].DrawStyle = DRAWSTYLE_LINE; sc.Subgraph[2].LineWidth = 2; return; } sc.MovingAverage(sc.BaseDataIn[SC_LAST], sc.Subgraph[2], MOVAVGTYPE_SIMPLE, 10); } |