
Position Tracker by NTL
Position Tracker 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 optional points display, all in real time. The window features intelligent color coding to help you instantly assess your positions: green for profit, red for loss, and yellow for break-even. 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 track of your positions in real-time.
Getting Started
- Find it in the 'NinjaTrade 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.
Key Features
- Smart Symbol Display: Shows only the root symbol for cleaner visualization
- Flexible P&L Display: Choose to show dollars, points, both, or neither based on your preferences
- Intelligent Points Formatting: Points automatically display with decimal places matching the instrument's tick size (e.g., ES shows 2.25, YM shows 2)
- Break-Even Highlighting: Positions at or near zero P&L display in yellow for instant recognition
- Auto-Sizing Layout: Columns automatically adjust to content, preventing text cutoff - but you can always resize
Inputs (Account Settings)
- 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. The tracker will display only the root symbol for cleaner visualization. - 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
Display Options
- Show Dollars (ShowDollars)
- True (default): Displays dollar P&L values
- False: Hides dollar amounts
- Show Points (ShowPoints)
- True: Shows P&L in points (ticks)
- False (default): Hides points display
Display Configurations:
- Check Boxes
- Both True: Shows "$500 (5.00)" with points in parentheses
- Only Dollars: Shows "$500"
- Only Points: Shows "5.00" without parentheses
- Both False: Shows only position and symbol, no P&L
Color Customization
- Positive Value Color (PositiveValueColor)
Brush for long-position text and positive P&L (default: Green) - Negative Value Color (NegativeValueColor)
Brush for short-position text and negative P&L (default: Red) - Background Color (BackgroundColor)
Brush for the window's background (default: Black) - Symbol Color (SymbolColor)
Brush for symbol text display (default: White)
Window Appearance
- Font Size (FontSize)
Text size for all labels bigger for readability - Dialog Width / Height (DialogWidth, DialogHeight)
Starting size of the pop-up window in pixels (defaults: 450x140) - Dialog Left / Top (DialogLeft, DialogTop)
Saved X/Y on-screen coordinates. These automatically update 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 (range: 1-20, default: 1 for minimal intrusion) - Drag Handle Color (DragHandleColor)
Brush for the draggable header bar (default: DarkGray) - Header Color (HeaderColor)
Additional color customization for the header area (default: DarkGray)
How to Use Position Tracker
- Add Position Tracker to your chart from the NinjaTradeLive indicator folder.
- In its properties, pick your account and configure your display preferences:
- Choose whether to "Track All Positions" or just the current chart
- Set your P&L display preferences (dollars, points, or both)
- Customize colors to match your trading style or streaming setup
- Click APPLY and OK, the window appears centered (or at your last saved spot).
- Drag it anywhere on your screen. The position is automatically saved, so it will reappear in the same place when you reload the chart or restart NinjaTrader.
Understanding the Display - Position Information
- LONG/SHORT: Displayed in your chosen positive/negative colors
- Quantity: Shows the number of contracts/shares
- Symbol: Shows only the root symbol for clarity
P&L Color Coding
- Green (or your positive color): Profitable positions
- Red (or your negative color): Losing positions
- Yellow: Break-even positions (P&L within $0.01 of zero)
Points Display
The indicator automatically formats points based on each instrument's tick size:
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 | 176 |
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.