Add Chart Control to jump to plotted trades with hotkeys

I tried to have the chart scroll or jump directly to a plotted trade, e.g. done by a strategy in the strategy analyzer chart. However GitHub Copilot tells me:

“You cannot programmatically scroll the chart to a specific trade using NinjaScript or the chart’s rendering engine, as NinjaTrader does not expose direct chart navigation methods. However, you can utilize SystemPerformance. AllTrades to access trade information and visually highlight trades on the chart, making manual navigation much easier.”

however:
How NinjaTrader Stores and Displays Trade Information

  1. Trade Executions:
    • When a trade is executed (entry or exit), NinjaTrader records the execution in its internal trade performance and execution database.
    • Each execution contains details such as instrument, time, price, quantity, and order signal.
  2. Chart Markers:
    • On the chart, NinjaTrader reads the execution history and overlays trade markers (arrows, lines, etc.) at the corresponding bar and price.
    • These markers are not drawn by your NinjaScript code; they are managed by the chart’s rendering engine.
  3. Data Storage:
    • Trade data is stored in NinjaTrader’s internal objects, such as TradeCollection, ExecutionCollection, and TradePerformance.
    • For programmatic access, you can use the SystemPerformance and TradeCollection objects in your strategy or indicator.

so the data is there on various way. It is just the ChartControl not having the method to jump to any of these data.
However, I can open a new chart using the strategy analyzers Trades tab and right clicking a trade, that will open at the exact trade, without issues.
Copilot says: " This is a built-in feature, but it is not exposed directly to NinjaScript or AddOns for programmatic control."

So the request is, to open up these features to enable us create an add-on for jumping to plotted trades on the chart with ease and precision and reduce stress of mouse scroll wheels and keyboards arrow keys. Not to speak about users sanity scrolling through years of trades.

Or add this nice, little addition to the charts functionality.
Thank you in advance! :sparkling_heart:

2 Likes

A request for a jump to date feature was requested 7 years ago… this should tell you your chance of it getting added.

You only fail when you stop trying.
I don’t see any reason to not continue to ask for this (I thought someone must have requested this somewhere already). Just in case: don’t do not try just because someone else failed.
I encourage anyone reading this and also wanting this feature to give it a :sparkling_heart: !

It would improve the usability by a lot, as this feature would also open up to jump to other things, like found pattern, older markings, specific dates, you name it.

1 Like

I’m all for a more responsive vendor when there are popular feature requests or bugs fixes that affect a large number of users.

However, keep in mind that this forum is a user forum where users help each other out to the best of their ability. NT support isn’t reading these requests. So if you want to have a chance of getting your request in front of the right people, you might want to email your request to NT support in addition to posting here.

1 Like