Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
profit and total loss of the day
Collapse
X
-
profit and total loss of the day
Applying my strategy to a determined account, I want to determine the profit / loss of the day to be able to decide then whether to remain with the active strategy or to disarm the strategy. How can I proceed? I would wantto be able to determine the Profit / loss of a determianto account. Thanks.Tags: None
-
I'd like to piggy-back on this thread---can you clarify if it is possible to obtain the profit and loss (and number of trades) on the account level vs. the strategy level? As I read the samples--it appears to me when you get the total realized or unrealized profit and trade count-you're only getting the profit/loss and trade count from executions from the active strategy (the strategy containing this code)--and NOT all trades executed that day (for example I may have manually executed 3 trades before I enabled a strategy).
What I want is to know how many trades I have executed across all sources (manual, DOM, chart traders and other strategies) before I enter a new trade within a strategy...
is there an object that contains this # at the account level?
Comment
-
Hi Jim-Boulder,
Yes, that's correct. All the performance info is specific to the strategy context that accesses it.
Using GetAccountValue() the only account level properties are:
BuyingPower
CashValue
RealizedProfitLoss
You can save performance info from multiple strategy instances to a file, but unfortunately there's no way to access trade data programatically outside of a strategy.Ryan M.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
152 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
89 views
1 like
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
131 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
127 views
1 like
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
107 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment