public override void OnCalculateMinMax() { //Set the charts min/max values to 50 Ticks above/below MyPlot double tmpMin = double.MaxValue; double tmpMax = double.MinValue; for(int key = ChartBars.FromIndex; key <= ChartBars.ToIndex && key < sortedDicList.Count;key++) { double cl = closeRenko[key]; if(tmpMin > cl) tmpMin = cl; if(tmpMax < cl) tmpMax = cl; } MinValue = tmpMin; MaxValue = tmpMax; } protected override void OnRender(ChartControl chartControl, ChartScale chartScale) { chartScale.MinValue ... }
chartScale.MinValue = 6918 doesn't match MinValue = 6954.
chartScale.MaxValue = 6972 doesn't match MaxValue = 6969.
The scale Range is set to automatic w/ Percent = 6. Seems like its pulling the low value of the chart series (6921) despite me setting the min / max in the indicator. how do I fix this?
Comment