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
How is Performance.RealtimeTrades.TradesPerformance.Perce nt.CumProfit calculated?
Collapse
X
-
How is Performance.RealtimeTrades.TradesPerformance.Perce nt.CumProfit calculated?
Hi. I had my custom strategy send me an email at the end of one day's trading session and the email included the day's [Performance.RealtimeTrades.TradesPerformance.Curre ncy.CumProfit] and [Performance.RealtimeTrades.TradesPerformance.Perce nt.CumProfit]. For an account value of about $1000, I got an email saying at the end of the trading day, I got 31.8799999999961 as my Currency.CumProfit and 0.00065834741769355 was the Percent.CumProfit. It maybe be just me but considering the figures of the account value and the Currency.CumProfit, the Percent.CumProfit seems way off. How exactly is Percent.CumProfit calculated? What figures are used in its calculation and how do they interact? Please let me know. Thanks. -
Hello,
Thank you for your post.
The cumulative profit in percent is calculated with:
PRODUCT(1 + profit / entry price) of all trades - 1
Below is a link to the Statistic Definitions where you can compare this with the formula of the currency.
http://www.ninjatrader.com/support/h...efinitions.htmChelsea B.NinjaTrader Customer Service
-
Thanks for the prompt response. It turns out that definition is different from what I thought it was. Could you please tell me, then, if AvgProfit is the same as CumProfit in terms of their definition? If not, could you please tell me the definition of AvgProfit? I couldn't find it in the link you sent me and it may be what I am looking for (I am thinking of a parameter that establishes the ratio between profit and accountvalue e.g. profit / accountvalue as percentage ). Thanks in advance.
Comment
-
Hi mbesha,
The AvgProfit is not in the Statistic Definitions because this is not included with any Performance Reports.
It can be accessed however from a NinjaScript Strategy.
http://www.ninjatrader.com/support/h...?avgprofit.htm
This would be an average of the profits.
So a profit of 1, 5 and 10 would be an average profit of 5.33.Chelsea B.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by ezekilany, Today, 01:10 AM
|
0 responses
3 views
0 likes
|
Last Post
by ezekilany
Today, 01:10 AM
|
||
Started by usjavaburn, Today, 12:59 AM
|
0 responses
3 views
0 likes
|
Last Post
by usjavaburn
Today, 12:59 AM
|
||
Started by heatherjmarshalls, Today, 12:56 AM
|
0 responses
2 views
0 likes
|
Last Post Today, 12:56 AM | ||
Started by Nicholewatkinsi, Yesterday, 10:53 PM
|
0 responses
6 views
0 likes
|
Last Post Yesterday, 10:53 PM | ||
Started by dward123, 01-02-2024, 09:59 PM
|
4 responses
176 views
0 likes
|
Last Post
by Lancer
Yesterday, 09:27 PM
|
Comment