Position Tracker
Position Tracker is a high-performance NinjaTrader charting utility (indicator) that opens a small, always-on-top window showing your current account positions (longs/shorts), trade size, symbol, average entry price, unrealized P&L (with optional points display), and order-based risk/reward analysis all in real time.
See this tool in action on NinjaTrader Live on YouTube each trading day:
https://www.youtube.com/@NinjaTrader
What Is New:
Now compatible with ATM Bracket Orders
Cleaner color design with white border (customizable)
Getting Started:
Download and import into your NinjaTrader Desktop Platform
Go to Indicators in charting – find Position Tracker in the NinjaTrader Live folder at the top of the indicator list. Add it to your chart.
On the right in Properties: Set the ‘Account’ input under the Account Settings group for the account you will be trading (Live or SIM).
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, including risk/reward ratio
Intelligent Points Formatting: Points display with decimal places matching the instrument’s tick size
Break-Even Highlighting: Positions at or near zero P&L display in white
Input Properties:
Account Settings:
Account: Select which trading account to track. If left blank, displays warning message: “Select an Account from the Properties”
Track All Positions: True (default): Lists every active position in your selected account in a vertical list with separators. False: Shows only the position for the chart symbol
Update Frequency: (default: 3 seconds) – How often the window refreshes. Lower values provide more responsive updates. Range: 1 to 10 seconds
Display Options:
Show Dollars: True (default): Displays dollar P&L values
Show Points: True (default): Displays P&L in points (ticks)
Show Avg Entry Price: True (default): Displays the average entry price after the position
Show Full Symbol: True (default): Shows full symbol with expiration date. False: Shows only the root symbol (ES)
Show Order P&L: True (default): Displays a second line showing potential profit/risk based on active orders
Show Ratio: True (default): When Order P&L is enabled, shows risk/reward ratio
Show Border: True (default): Shows thin window border
Visual Style:
Border Color: Color for the thin border around the window (default: White)
Border Width:Small line thickness around the window (default: 2)
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 background (default: Black)
Symbol Color: Color for symbol text (default: White)
Order P&L Color: Color for the order profit/loss line (default: White)
Font Size: Text size for all labels (default: 22)
Window Settings:
Dialog Width / Height: Resize with the mouse
Dialog Left / Top: Reposition with the mouse
Understanding the Display:
Position Information (First Line):
LONG/SHORT: Displayed in your chosen positive/negative colors
Quantity: Number of contracts/shares
Average Entry Price: The average entry price for the position
Symbol: Displays either the root or full symbol depending on settings
Position P&L: Unrealized profit/loss in your selected format
Order P&L Information (Second Line) (if enabled):
Profit: Potential profit if limit orders fill
Risk: Potential loss if stop orders fill
Ratio: Risk/reward ratio
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: Profit divided by risk (e.g., 2.5:1 means $2.50 potential profit for every $1 risked)
The indicator intelligently only counts exit orders, and supports multiple stops and targets, including those placed with Automated Trade Strategies (ATM).
Troubleshooting:
Message: Select an Account from the Properties – Choose your account in the Properties Account Settings group
Window Disappeared: May be minimized or 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:
Email: [email protected]
Disclosure:
Futures trading and strategy trading involve substantial risk and the potential for capital loss.
All NinjaScript code provided here is by NinjaTrader, LLC and is for educational and demonstration purposes only.
This indicator is provided “as-is,” without warranty of any kind. Trading futures and other financial instruments involves substantial risk and may not be suitable for all investors.
Always verify critical trading 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 trading decisions.
See additional disclosures on NinjaTrader.com