The current indicator I use shows the priceline of the Low of the last bar. I want to add an offset of -1 tick to the line. How do you add that?
if (State == State.SetDefaults) { Description = @"photog53 Horizontal Line at Low Price"; Name = "PriceLineLow"; Calculate = Calculate.OnPriceChange; IsOverlay = true; DisplayInDataBox = false; DrawOnPricePanel = false; DrawHorizontalGridLines = true; DrawVerticalGridLines = true; PaintPriceMarkers = true; ScaleJustification = NinjaTrader.Gui.Chart.ScaleJustification.Right; //Disable this property if your indicator requires custom values that cumulate with each new market data event. //See Help Guide for additional information. IsSuspendedWhileInactive = true; LineColor = Brushes.Black; LineStyle = DashStyleHelper.Dot; LineWidth = 2; RayLength = 5; UseExtendedLine = true; } else if (State == State.Configure) { } } protected override void OnBarUpdate() { if (UseExtendedLine) Draw.HorizontalLine(this, "Currprice", false, Low[0], LineColor, LineStyle, LineWidth); else if (CurrentBar > 30) Draw.Line(this, "CurrRay", false, RayLength, Low[0], 0, Low[0], LineColor, LineStyle, LineWidth); }
Comment