When using Draw.Text to mark my candles according to my trend logic I see varying spacing above the highs and below the lows of my candles.
Try something similar on a 2-min ES chart:
if (upperTrendMode) { Draw.Text(this, 0 + "-series upperTrendMode" + CurrentBars[0], false, label, indicatorIndex, Highs[0][indicatorIndex] + 1.5 * Instrument.MasterInstrument.RoundToTickSize(TickSize * tickSizeMultiplier), 1, Brushes.White, textFont, TextAlignment.Center, Brushes.SeaGreen, Brushes.DarkOliveGreen, 100); } else if (lowerTrendMode) { Draw.Text(this, 0 + "-series lowerTrendMode" + CurrentBars[0], false, label, indicatorIndex, Lows[0][indicatorIndex] - 1.5 * Instrument.MasterInstrument.RoundToTickSize(TickSize * tickSizeMultiplier), -1, Brushes.White, textFont, TextAlignment.Center, Brushes.IndianRed, Brushes.Crimson, 100);
The most recent drawings look correct but the more I scroll backward in time the more the spacing increases. I've used this drawing technique for years and it usually has worked fine for me.
Any suggestions?
Comment