If not, is there any function that returns open profit?
Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
NT8 SystemPerformance.RealTimeTrades.TradesPerformance.Currency.CumProfit Open Trade
Collapse
X
-
NT8 SystemPerformance.RealTimeTrades.TradesPerformance.Currency.CumProfit Open Trade
Does SystemPerformance.RealTimeTrades.TradesPerformance .Currency.CumProfit include profit of any currently open trades?
If not, is there any function that returns open profit?Tags: None
-
Hello saturntd,
Unfortunately, SystemPerformance only includes closed trades and does not include open trades.
You can get the unrealized of the account (if supported by the brokerages) with Account.Get(AccountItem.UnrealizedProfitLoss).
Or you would need to track this with custom logic. Below is a link to an example.
Hello, I've updated the DailyLossLimit and DailyLosLimitMultiTrade examples that were posted on the forum for NinjaTrader 7 for NinjaTrader 8. These are often requested and I felt they are good examples to have for NT8. DailyLossLimitExample_NT7 - http://ninjatrader.com/support/forum...241#post451241 (http://ninjatraderChelsea B.NinjaTrader Customer Service
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by nightstalker, 05-04-2024, 02:05 PM
|
5 responses
52 views
1 like
|
Last Post
by nightstalker
Today, 12:13 AM
|
||
Started by MSerag, Yesterday, 11:52 PM
|
0 responses
6 views
0 likes
|
Last Post
by MSerag
Yesterday, 11:52 PM
|
||
Started by DynamicTest, Yesterday, 11:18 PM
|
0 responses
3 views
0 likes
|
Last Post
by DynamicTest
Yesterday, 11:18 PM
|
||
Started by dcriador, Yesterday, 01:43 AM
|
3 responses
20 views
0 likes
|
Last Post
by dcriador
Yesterday, 11:17 PM
|
||
Started by smartromain, Yesterday, 10:50 PM
|
0 responses
5 views
0 likes
|
Last Post
by smartromain
Yesterday, 10:50 PM
|
Comment