Support Board
Date/Time: Tue, 13 May 2025 17:55:40 +0000
Post From: Programming Help: Tick Size and Scale Range Type
[2024-08-29 12:22:17] |
emmanuel - Posts: 63 |
Try this: SCDLLName("Ticks Range")
SCSFExport scsf_TicksRange(SCStudyInterfaceRef sc) { int& IsTickSizeSet = sc.GetPersistentInt(0); if(sc.SetDefaults) { sc.ScaleRangeType = SCALE_CONSTANT_RANGE; // Set this study to use a centered constant range scale sc.ScaleConstRange = 30; // Set the range of the scale to 30 points sc.GraphRegion = 0; // Use the main price graph region } if(sc.Index == 0 && IsTickSizeSet == 0) { sc.TickSize = 0.5; // Set the tick size to 0.5 IsTickSizeSet = 1; sc.FlagToReloadChartData = 1; } } |