(int bBar, String strX, Color cI, Color cB, bool bOverride = false, bool bSwap = false)
| 239 | } |
| 240 | |
| 241 | protected void DrawText(int bBar, String strX, Color cI, Color cB, bool bOverride = false, bool bSwap = false) |
| 242 | { |
| 243 | var candle = GetCandle(bBar); |
| 244 | |
| 245 | decimal _tick = ChartInfo.PriceChartContainer.Step; |
| 246 | decimal loc = 0; |
| 247 | |
| 248 | if (candle.Close > candle.Open || bOverride) |
| 249 | loc = candle.High + (_tick * iOffset); |
| 250 | else |
| 251 | loc = candle.Low - (_tick * iOffset); |
| 252 | |
| 253 | if (candle.Close > candle.Open && bSwap) |
| 254 | loc = candle.Low - (_tick * (iOffset * 2)); |
| 255 | else if (candle.Close < candle.Open && bSwap) |
| 256 | loc = candle.High + (_tick * iOffset); |
| 257 | |
| 258 | if (strX == "▼") |
| 259 | loc = candle.High + (_tick * iOffset); |
| 260 | if (strX == "▲") |
| 261 | loc = candle.Low - (_tick * (iOffset * 2)); |
| 262 | |
| 263 | AddText("Aver" + bBar, strX, true, bBar, loc, cI, cB, iFontSize, DrawingText.TextAlign.Center); |
| 264 | } |
| 265 | |
| 266 | #endregion |
| 267 |
nothing calls this directly
no outgoing calls
no test coverage detected