Position Tracker
Position Tracker is a high-performance 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, average entry price, unrealized P&L with optional points display, and order-based risk/reward analysis, all in real time.
Getting Started
- Download an import into the desktop charting
- Goto Indicators – Find Position Tracker in the NinjaTradeLive folder at the top of the indicator dialog.
- Set the ‘Account’ property in the Account Settings group.
Key Features
Average Entry Price Display: Optionally show your average entry price alongside position information
Flexible P&L Display: Choose to show dollars, points, both, or neither based on your preferences
Order P&L Analysis: Displays potential profit/loss based on your stop loss and profit target orders, with risk/reward ratio calculation
Intelligent Points Formatting: Points automatically display with decimal places matching the instrument’s tick size
Break-Even Highlighting: Positions at or near zero P&L display in yellow for instant recognition
Input Properties
Account Settings
Account – Select which trading account to track. If left blank, displays “Select an Account from the Properties” message.
Track All Positions – False (default): Shows only the position in the chart symbol
True: Lists every active position in your selected account in a vertical list with separators, plus always shows current chart’s symbol status.
Update Frequency (seconds) – How often the window refreshes (default 3 seconds). Changes take effect immediately. Lower values provide more responsive updates. Range: 1-60 seconds.
Display Options
Show Dollars – True (default): Displays dollar P&L values, False: Hides dollar amounts.
Show Points – True (default): Shows P&L in points (ticks), False: Hides points display
Show Avg Entry Price – True (default): Displays the average entry price after the position (e.g., “LONG 2 @4525.75”), False: Hides average entry price
Show Full Symbol – True (default): Shows full symbol with expiration date (e.g., “ES SEP25”) False: Shows only root symbol (e.g., “ES”),
Show Order P&L – True (default): Displays a second line showing potential profit/risk based on your active orders, False: Shows only position information
Show Ratio – True (default): When Order P&L is enabled, shows risk/reward ratio (e.g., “2.5:1”), False: Shows only profit and risk amounts
Visual Style
Positive Value Color – Color for long-position text and positive P&L (default: Green)
Negative Value Color – Color for short-position text and negative P&L (default: Red)
Background Color – Color for the window’s background (default: Black)
Symbol Color – Color for symbol text display (default: White)
Order P&L Color – Color for the order profit/loss line (default: LightBlue)
Font Size -Text size for all labels bigger for readability on streams (range: 12-36, default: 22)
Window Settings
Dialog Width / Height (DialogWidth, DialogHeight) resize with the mouse
Dialog Left / Top (DialogLeft, DialogTop) resize with the mouse
Understanding the Display
Position Information (First Line)
LONG/SHORT: Displayed in your chosen positive/negative colors
Quantity: Shows the number of contracts/shares
Average Entry Price: Displays the average entry price for the postion
Symbol: Shows either root symbol or full symbol based on your settings
P&L: Shows unrealized profit/loss in your chosen format
Order P&L Information (Second Line – if enabled)
Profit: Shows potential profit if your limit orders fill (e.g., “Profit: $500”)
Risk: Shows potential loss if your stop orders fill (e.g., “Risk: $200”)
Ratio: Shows risk/reward ratio (e.g., “Ratio: 2.5:1”)
“No active exit orders”: Displayed when no stop loss or profit target orders are detected
How Order P&L Works
The Order P&L feature analyzes your active orders to calculate:
Risk: Based on the distance from your entry to your stop loss orders
Profit: Based on the distance from your entry to your limit/profit target orders
Ratio: The profit divided by the risk (e.g., 2.5:1 means $2.50 potential profit for every $1 risked)
The indicator intelligently only counts exit orders and handles multiple stops and targets
Troubleshooting
Message: “Select an Account from the Properties”: Choose your account in the Account Settings group
Window disappeared: Check if it’s minimized or moved off-screen; remove and re-add the indicator to reset position
Order P&L shows “No active exit orders”: Ensure you have stop loss and/or profit target orders placed for the position
Support & Feedback
For issue reports, feature requests, or general questions:
Send an email to [email protected]
Disclosure
Futures trading and strategy trading involves substantial risk and the potential for loss of capital. All NinjaScript code contained herein is provided by NinjaTrader, LLC and is for educational and demonstrational purposes only.
This indicator is provided “as-is” without warranty of any kind. Trading futures and other financial instruments involves substantial risk of loss and is not suitable for all investors.
Always verify critical information through multiple sources
Test thoroughly in simulation before live trading
The developer assumes no liability for trading losses
You alone are responsible for your own trading decisions
You can find additional disclosure information on the NinjaTrader.com website.