MCPcopy Create free account
hub / github.com/TraderOracle/ATAS / OnRender

Method OnRender

TripleStochastic.cs:101–114  ·  view source on GitHub ↗
(RenderContext context, DrawingLayouts layout)

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected