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
Peak to Trough script
Collapse
X
-
Peak to Trough script
I'm looking for an indicator that will tell me the 10 largest peak to trough moves in a series. I'm not looking for a zigzag or price action swing indicator that paints all swings. I'm only interested in knowing the dates ( or bar number ) of the peaks and troughs of the 10 largest moves down. This is really a drawdown algorithm but I've been unable to find one in the public domain that does this for more than just the largest.Tags: None
-
Hello Brillo,
Thank you for the post.
I did a quick search to see if I could spot anything in the app share or the general web but I was unable to find anything that already exists by this description. It is possible there are other scripts that include this type of logic but the name or description may not be specific enough to locate those items by this search term.
The ZigZag may be able to be reprogrammed to accomplish this task, if the overall zig zag and how it displays the points is similar to the overall goal you want, its logic could be modified to accommodate gathering the largest moves dates or other data you need. However, this is a fairly complex indicator so this would not necessarily be a simple change, this would likely just be a good starting point for this type of data collection.
I look forward to being of further assistance.
JesseNinjaTrader Customer Service
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Padan, Today, 02:02 AM
|
0 responses
2 views
0 likes
|
Last Post
by Padan
Today, 02:02 AM
|
||
Started by bukowa, 11-09-2023, 06:07 PM
|
20 responses
405 views
0 likes
|
Last Post
by Adfra
Today, 01:36 AM
|
||
Started by yertle, Yesterday, 05:49 PM
|
2 responses
11 views
0 likes
|
Last Post
by yertle
Today, 12:12 AM
|
||
Started by kaywai, Today, 12:06 AM
|
0 responses
8 views
0 likes
|
Last Post
by kaywai
Today, 12:06 AM
|
||
Started by kaywai, 03-25-2024, 10:04 PM
|
3 responses
37 views
0 likes
|
Last Post
by kaywai
Yesterday, 11:57 PM
|
Comment