
PositionTracker
PositionTracker is a NinjaTrader charting indicator that opens a small, always-on-top window over your chart, showing your current account positions (longs/shorts), trade size, the symbol, and unrealized P&L with (P&L points) all in real time. You can drag the window around and it will remember its last screen position. It polls your account every few seconds so you can keep your viewers up to date during a livestream.
- Find PositionTracker in the NinjaTrader Live folder at the top of the indicator dialog.
- Insert it into the chart you will be trading and set the account to trade input property.
- To close the window, remove it from the chart in the indicator dialog.
Inputs:
- Account (AccountName) (dropdown)
Select which trading account to track and trade. If left blank, it uses your primary account. Make sure you are placing trades in the same account. - Symbol Override (SymbolOverride)
Force the tracker to show a specific symbol instead of the chart's instrument. Leave empty to follow the chart. - Track All Positions (TrackAllPositions)
- False: shows only the position in the chart (or override) symbol.
- True: lists every active position in your selected account in a vertical list.
- Show Points (ShowPoints)
- False: displays only dollar P&L values.
- True: shows both dollar P&L values and the equivalent points in parentheses (e.g., "$500 (5.0)").
- Update Frequency (seconds) (UpdateFrequency)
How often the window refreshes (default 2 seconds). - Positive Value Color (PositiveValueColor)
Brush for long-position text and positive P&L. - Negative Value Color (NegativeValueColor)
Brush for short-position text and negative P&L. - Background Color (BackgroundColor)
Brush for the window's background. - Font Size (FontSize)
Text size for all labels---bigger for readability on streams. - Dialog Width / Height (DialogWidth, DialogHeight)
Starting size of the pop-up window in pixels. - Dialog Left / Top (DialogLeft, DialogTop)
Saved X/Y on-screen coordinates. Automatically updated when you move the window; you normally leave these alone. - Drag Handle Height (DragHandleHeight)
Pixel height of the colored header bar you grab to drag. - Drag Handle Color (DragHandleColor)
Brush for that header bar.
How to use:
- Add PositionTracker to your chart.
- In its properties, pick your account, decide whether to "Track All Positions," and (optionally) override the symbol and whether to show P&L points.
- Click APPLY and OK---the window appears centered (or at your last saved spot).
- Drag it anywhere; on reopening or chart reload, it will reappear in that same place and keep updating your positions every UpdateFrequency seconds.
Disclosure:
Futures trading and strategy trading involves substantial risk and the potential for loss of capital. The performance results of a trading strategy developed on the NinjaTrader platform may not be indicative of future real-time trading performance. Sample strategies and indicators provided by NinjaTrader, LLC are designed to teach strategy trading and development concepts. All NinjaScript code contained herein is provided by NinjaTrader, LLC and is for educational and demonstrational purposes only. You alone are responsible for the trading decisions that you make. You can find additional disclosure information on the NinjaTrader.com website.
Created By | NTEducationTeam |
NinjaTrader Version | 8 |
File Size | 5.9 KB |
Create Date | 05/30/2025 |
# of Downloads | 22 |
Importing to NinjaTrader 8 is Easy!
To import your 3rd party app or add-on to NinjaTrader, simply follow these 3 steps:
- Download the app or add-on file to your desktop
- From the NinjaTrader Control Center window, select the menu Tools > Import > NinjaScript Add-On…
- Select the downloaded file from your desktop
Questions?
Visit the NinjaScript File Sharing discussion in the NinjaTrader user forum to interact with fellow traders and the NinjaTrader support team.