PDA

View Full Version : How do you access account value and P&L?


8DTK8
11-30-2009, 12:07 PM
For example something as simple as:

Print("Current account value: " + ????? + "; P&L of most recent closed trade: " + ????? + "; Cumulative P&L: " + ?????);

Thanks in advance.

NinjaTrader_Bertrand
11-30-2009, 12:28 PM
Accessing live account values will be supported in NinjaTrader 7, as we add methods for access then - http://www.ninjatrader.com/webnew/NT7/NinjaTrader7.html

To access strategy performance statistics of realtime and historical trades, please check into the performance class -

http://www.ninjatrader-support.com/HelpGuideV6/Performance.html