Is this indeed possible? Worth pursuing?
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
custom performance metrics
Collapse
X
-
custom performance metrics
I've just started looking at custom performance metrics. I'd like to calculate some performance numbers with a "Position" focus...i.e to calculate some metrics from Position Initiated to Position Flat. (Instead of individual exits). This seems feasible to me if I handle the custom aggregation in OnAddTrade().
Is this indeed possible? Worth pursuing?Tags: None
-
Hello NickyD,
There is not any documentation on accessing the strategy position from a performance metric script.
I'm not sure this would be possible with this type of script.
The Trades being processed are fully closed trades with an entry and exit (and not individual orders) and is used to build a trade collection. Further the strategy instance is not available.
This thread will remain open for any community members that may have an unsupported workaround they would like to share.Chelsea B.NinjaTrader Customer Service
-
Ok, thanks.
I know you guys have lots of different customers, with lots of different use cases, but I have to think this is pretty clearly a big miss by NT. How can you not have the concept of a strategy position in your strategy performance analysis?
NT's built in performance metrics can't do it, we can't do it via custom code... this seems like important and useful functionality IMO.
Comment
-
Hello NickyD,
An optimizer script does have access to the strategy instance but performance metric scripts are designed to process trade objects. The position would not be a consideration for a closed trade as that trade would not be impacting the position.
I'm not sure if this would be helpful, but I'm providing an example below.
is there a way to get Min/Max/Avg of daily profit/loss in the strategy analyzer running Optimization ?
Chelsea B.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by StockTrader88, 03-06-2021, 08:58 AM
|
45 responses
3,992 views
3 likes
|
Last Post Today, 09:51 AM | ||
Started by TAJTrades, Today, 09:46 AM
|
0 responses
7 views
0 likes
|
Last Post
by TAJTrades
Today, 09:46 AM
|
||
Started by rhyminkevin, Yesterday, 04:58 PM
|
5 responses
62 views
0 likes
|
Last Post
by dp8282
Today, 09:36 AM
|
||
Started by realblubb, Today, 09:28 AM
|
0 responses
8 views
0 likes
|
Last Post
by realblubb
Today, 09:28 AM
|
||
Started by AaronKoRn, Yesterday, 09:49 PM
|
1 response
19 views
0 likes
|
Last Post
by Rikazkhan007
Today, 09:24 AM
|
Comment