Markers Plus “Copy Tool” not pixel-aligned with source plot (timing/ordering?)
Env: NinjaTrader 8.1.5.2, CME futures; indicator + Markers Plus (Copy Tool)
Goal: Copy Tool dots should sit exactly on top of a continuously updated line plot on the price panel—same bar, same price—throughout the active bar.
Setup:
Indicator: one line plot LineOut (Values[0]).
Calculate = OnEachTick
Writes a value every bar (no NaNs), tick-rounded via Instrument.MasterInstrument.RoundToTickSize(…).
Plot style = Line, width 2.
Markers Plus → Copy Tool
Input series: .LineOut
Calculate: On each tick
Offsets: 0 / 0
Panel: Same as input series
Replace n/a by zero: Off
Observed: Copy dots are close but sometimes not exactly on the line during the live bar (looks like a 1-tick desync or update ordering issue).
Questions:
Does Copy Tool read a plot after the indicator’s most recent OnBarUpdate for that tick (same value used for rendering), or can it read a prior value in the same update cycle? Any known order-of-operations details here?
Any recommended settings to guarantee 1:1 alignment with a continuously updated, tick-rounded plot (e.g., panel/scale options, “Replace n/a by zero”, etc.)?
Are there caveats if the source indicator also backfills prior bars (e.g., draws a segment between pivots) while still writing a value on bar-0 every tick?
Minimal repro (outline)
// Plot LineOut continuously; no NaNs; tick-rounded
Calculate = Calculate.OnEachTick;
protected override void OnBarUpdate()
{
double v = /* compute current leg value */;
Values[0][0] = Instrument.MasterInstrument.RoundToTickSize(v);}
Happy to provide the full 10–15 line indicator if needed.
Thanks! Michael