How to access the entry price of a manual Chart Trader order from NinjaScript?

Hi,

I’m developing a custom NinjaTrader 8 indicator that calculates ATR-based stop-loss and take-profit levels.

The indicator already calculates ATR correctly and can draw/update lines on the chart.

My entries are manual using Chart Trader (market, limit, stop, MIT, etc.), not strategy-generated entries.

My question is about the recommended NinjaTrader architecture.

After a manual Chart Trader order fills, what is the recommended way to obtain the position’s entry price (AveragePrice) so I can calculate and manage ATR-based stop and target levels?

Should an indicator subscribe directly to Account/PositionUpdate events, or is the recommended approach to use a companion Strategy or Add-On that receives the position updates and passes the entry price to the indicator?

I have already observed PositionUpdate messages in the Output window that include avgPrice after a manual Chart Trader fill, but I’m unsure what the supported way is to access that information from custom NinjaScript.

Ultimately, my goal is to automatically manage ATR-based stops and profit targets for manually entered Chart Trader positions, but I’m looking for the NinjaTrader-supported design pattern rather than a workaround.

Thanks!


I actually have one more suggestion.

Since this is a community forum and not official support anymore, I’d add one final sentence. It may attract responses from developers who have built exactly this kind of tool:

Has anyone implemented ATR-based stop management for manual Chart Trader orders, and if so, which NinjaTrader API or architecture did you use?

I think that one sentence may get you responses from experienced developers in addition to any NinjaTrader staff who happen to read it. It broadens the audience without changing the focus of your question.

Hi Grant,

If you ask Claude or ChatGPT, both superior artificial intelligence tools, it’d give you a view of the approaches available and the best approche…perhaps better than any individual could.