PDA

View Full Version : Position Pnl in indicator


Webby
06-04-2009, 03:02 PM
I am trying to enhance a custom panel with any "open positions" information. That is, if a position is open at any time, show the Pnl at that instant at a predefined location within the Panel.

Is it possible to get this info for indicators (such as my panel) ? or it only accessible from strategies ? Also is there a working sample I can refer to get to the Pnl ?

Thanks.

NinjaTrader_Josh
06-04-2009, 03:12 PM
Webby,

You cannot do this from an indicator. From a strategy you can only get information on trades pertaining to that particular strategy. For PnL sample please see this: http://www.ninjatrader-support2.com/vb/showthread.php?t=4084

For unrealized PnL see this: http://www.ninjatrader-support.com/HelpGuideV6/GetProfitLoss.html