# Calculating .... Loading

**URL:** <https://discourse.ninjatrader.com/t/calculating-loading/7856>\
**Category:** Desktop SDK - Indicators\
**Created:** [October 26, 2026, 4:32pm UTC](https://discourse.ninjatrader.com/t/calculating-loading/7856 "2026-10-26T16:32:34Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![several](https://discourse.ninjatrader.com/letter_avatar_proxy/v4/letter/s/b9e5f3/32.png) [@several](https://discourse.ninjatrader.com/u/several)\
**Post date:** [October 26, 2026, 4:32pm UTC](https://discourse.ninjatrader.com/t/calculating-loading/7856/1 "2026-10-26T16:32:35Z")

</div>

Does anyone know of any way to detect when the “Calculating…” or “Loading…” text is on the chart? I figure it must be possible because if you have ‘show date range’ enabled, it moves out of the way while these messages appear.

---

<div class="post-metadata">

**Author:** ![StratCoreAlpha](https://discourse.ninjatrader.com/letter_avatar_proxy/v4/letter/s/aeb1de/32.png) [@StratCoreAlpha](https://discourse.ninjatrader.com/u/StratCoreAlpha)\
**Post date:** [October 26, 2026, 4:38pm UTC](https://discourse.ninjatrader.com/t/calculating-loading/7856/2 "2026-10-26T16:38:39Z")

</div>

If you only need to know when your own indicator has finished historical processing, the documented route is OnStateChange(): DataLoaded means the data series have loaded, Historical starts historical processing, and Transition is reached after that processing finishes, before realtime processing begins. Those are different checkpoints.

That does not establish whether the chart’s literal “Calculating…” or “Loading…” overlay is visible, especially if another indicator is still working. The date-range label moving shows that the chart renderer knows about the overlay; it does not by itself establish a public NinjaScript property for it. Lifecycle reference: [NinjaScript \> Language Reference \> Common \> OnStateChange()&nbsp;](https://static.ninjatrader.com/support/helpGuides/nt8/onstatechange.htm)

Are you trying to wait for your own indicator to finish, or detect the actual overlay across the whole chart?

---

<div class="post-metadata">

**Author:** ![several](https://discourse.ninjatrader.com/letter_avatar_proxy/v4/letter/s/b9e5f3/32.png) [@several](https://discourse.ninjatrader.com/u/several)\
**Post date:** [October 26, 2026, 7:30pm UTC](https://discourse.ninjatrader.com/t/calculating-loading/7856/3 "2026-10-26T19:30:01Z")

</div>

Yea I’m trying to detect when the chart is loading data and still calculating because I have some graphical elements up there and the messages overlay on it.

---

<div class="post-metadata">

**Author:** ![StratCoreAlpha](https://discourse.ninjatrader.com/letter_avatar_proxy/v4/letter/s/aeb1de/32.png) [@StratCoreAlpha](https://discourse.ninjatrader.com/u/StratCoreAlpha)\
**Post date:** [October 26, 2026, 7:47pm UTC](https://discourse.ninjatrader.com/t/calculating-loading/7856/4 "2026-10-26T19:47:50Z")

</div>

For bars loading, the older NT8 guide lists ChartPanel.IsWaitingForBars. It does not confirm that every indicator finished calculating. Check availability in your build. For overlap, I would reserve a header strip and offset your graphics below it.

Reference: [https://ninjatrader.com/support/helpGuides/nt8.pdf](https://ninjatrader.com/support/helpGuides/nt8.pdf) (ChartPanel, page 2078).

Are you using Draw.TextFixed, OnRender or WPF?

---

<div class="post-metadata">

**Author:** ![several](https://discourse.ninjatrader.com/letter_avatar_proxy/v4/letter/s/b9e5f3/32.png) [@several](https://discourse.ninjatrader.com/u/several)\
**Post date:** [October 26, 2026, 8:59pm UTC](https://discourse.ninjatrader.com/t/calculating-loading/7856/5 "2026-10-26T20:59:15Z")

</div>

Link doesn’t work but google AI mentions something about it: ChartPanel.IsWaitingForBars I’ll have a look.

I’m using OnRender. The problem is… these texts are aware of each other also. So they stack on top of each other when both are on the chart, and if you have the date on the chart also that’s 3 lines…

---

<div class="post-metadata">

**Author:** ![StratCoreAlpha](https://discourse.ninjatrader.com/letter_avatar_proxy/v4/letter/s/aeb1de/32.png) [@StratCoreAlpha](https://discourse.ninjatrader.com/u/StratCoreAlpha)\
**Post date:** [October 27, 2026, 3:48am UTC](https://discourse.ninjatrader.com/t/calculating-loading/7856/6 "2026-10-27T03:48:48Z")

</div>

Thanks, that explains the three-line stack. IsWaitingForBars only covers bars loading, not that stack’s bounds. Here is the HTML reference instead of the failed PDF: [NinjaScript \> Language Reference \> Common \> Charts \> ChartPanel](https://static.ninjatrader.com/support/helpGuides/nt8/chartpanel.htm)

For OnRender, a fallback is a configurable header gap covering all three lines, with your graphics starting at ChartPanel.Y plus that gap. Size it for the chart font and display scaling. This reserves space permanently, rather than detecting the overlays.

I have not verified a public API for their current bounds. Dynamic reflow remains unresolved. Would a small simulation-only example of the adjustable gap help?

---

<div class="post-metadata">

**Author:** ![several](https://discourse.ninjatrader.com/letter_avatar_proxy/v4/letter/s/b9e5f3/32.png) [@several](https://discourse.ninjatrader.com/u/several)\
**Post date:** [October 27, 2026, 7:48am UTC](https://discourse.ninjatrader.com/t/calculating-loading/7856/7 "2026-10-27T07:48:10Z")

</div>

I’m trying to avoid spacing something 3 texts worth of lines away from the top of the chart just to accommodate for messages that appear only for a short time.
