I do this manually in Excel on daily data right now and I have compared these doubly-ranked values against just using the arithmetic average of the 3 indicators and they are similar, but definitely not identical.
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
Ranking Indicator Values
Collapse
X
-
Well, I wouldn't actually be doing a percentile ranking of a percentile ranking. It would be more like a percentile ranking of the average value of 3 indicators, and one of those 3 indicators is a percentile ranking of the daily changes.
I do this manually in Excel on daily data right now and I have compared these doubly-ranked values against just using the arithmetic average of the 3 indicators and they are similar, but definitely not identical.
-
Originally posted by PhillyD View PostWell, I wouldn't actually be doing a percentile ranking of a percentile ranking. It would be more like a percentile ranking of the average value of 3 indicators, and one of those 3 indicators is a percentile ranking of the daily changes.
I do this manually in Excel on daily data right now and I have compared these doubly-ranked values against just using the arithmetic average of the 3 indicators and they are similar, but definitely not identical.
-> first run the percentile ranking algorithm on your input series
-> then calculate the arithmetic mean of the 3 indicators and write the result to the newly created DataSereis
-> finally apply the percentile ranking algorithm to the new DataSeries
Percentile ranking is an interesting way of normalizing an indicator over a number N of given bars. Alternatively you could use the Z-score for doing the normlization.
Comment
-
Originally posted by anachronist View PostIf you still need this, I have just uploaded a Percentile indicator to the NT7 file sharing area. You can use it to plot median values of the last N bars, or any percentile of the last N bars. It's an efficient, fast algorithm, too.
Comment
-
Originally posted by forrestang View Post@anachronist, the part of your indicator getPercentile(), does it return a percentile if passed an array of values? I have a need for this as I want to calculate percentiles based on portions of an array.
If you want the percentile of an array, it's simple. Just sort the array and calculate the array index closest to your desired percentile. The value at the nearest array index will be the percentile. If you want to get fancy, you can interpolate like my indicator does.
Comment
-
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by judysamnt7, 03-13-2023, 09:11 AM
|
4 responses
59 views
0 likes
|
Last Post
by DynamicTest
Today, 08:25 PM
|
||
Started by ScottWalsh, Today, 06:52 PM
|
4 responses
36 views
0 likes
|
Last Post
by ScottWalsh
Today, 07:40 PM
|
||
Started by olisav57, Today, 07:39 PM
|
0 responses
7 views
0 likes
|
Last Post
by olisav57
Today, 07:39 PM
|
||
Started by trilliantrader, Today, 03:01 PM
|
2 responses
21 views
0 likes
|
Last Post
by helpwanted
Today, 07:25 PM
|
||
Started by cre8able, Today, 07:24 PM
|
0 responses
10 views
0 likes
|
Last Post
by cre8able
Today, 07:24 PM
|
Comment