Support Board
Date/Time: Wed, 22 Jan 2025 10:03:46 +0000
Post From: Trial, individual scale and study setting for each instrument
[2018-09-12 12:36:12] |
User149120 - Posts: 2 |
I've done code for individual scale constant range and horizontal line grid increment for each instrument. #include "sierrachart.h"
SCDLLName("Custom Study DLL") SCSFExport scsf_FunctionName(SCStudyInterfaceRef sc) { if (sc.SetDefaults) { sc.GraphRegion = 0; return; } SCString mysym=sc.GetChartSymbol(4); SCString partsym=mysym.GetSubString(3, 5); sc.BaseGraphScaleRangeType = SCALE_CONSTRANGECENTER; if (partsym == "ENQ") { sc.BaseGraphScaleConstRange = 28.0f; sc.BaseGraphHorizontalGridLineIncrement = 10.0f; return; } if (partsym == "CLE") { sc.BaseGraphScaleConstRange = 1.12f; sc.BaseGraphHorizontalGridLineIncrement = 0.5f; return; } if (partsym == "YMU") { sc.BaseGraphScaleConstRange = 112.0f; sc.BaseGraphHorizontalGridLineIncrement = 25.0f; return; } if (partsym == "RTY") { sc.BaseGraphScaleConstRange = 11.2f; sc.BaseGraphHorizontalGridLineIncrement = 5.0f; return; } } This thing is very important for me. As for individual Bid/Ask Minimum Volume Compare Threshold in Numbers Bars now it isn't important for me. |