(RenderContext context, DrawingLayouts layout)
| 99 | #region Protected methods |
| 100 | |
| 101 | protected override void OnRender(RenderContext context, DrawingLayouts layout) |
| 102 | { |
| 103 | if (ChartInfo is null || InstrumentInfo is null) |
| 104 | return; |
| 105 | |
| 106 | foreach (var l in lsDays) |
| 107 | { |
| 108 | RenderPen highPen = new RenderPen(l.c); |
| 109 | var xH = ChartInfo.PriceChartContainer.GetXByBar(l.bar, false); |
| 110 | var yWidth = ChartInfo.ChartContainer.Region.Width; |
| 111 | var xHigh = ChartInfo.ChartContainer.Region.Height; |
| 112 | context.DrawFillRectangle(highPen, l.c, new Rectangle(xH, xHigh - iBarHigh, iBarWidth, iBarHigh)); |
| 113 | } |
| 114 | } |
| 115 | |
| 116 | protected override void OnCalculate(int bar, decimal value) |
| 117 | { |
nothing calls this directly
no outgoing calls
no test coverage detected