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!
See more
See less

Partner 728x90

Collapse

Peak to Trough script

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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.

    #2
    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

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by algospoke, Today, 06:40 PM
    0 responses
    9 views
    0 likes
    Last Post algospoke  
    Started by maybeimnotrader, Today, 05:46 PM
    0 responses
    7 views
    0 likes
    Last Post maybeimnotrader  
    Started by quantismo, Today, 05:13 PM
    0 responses
    7 views
    0 likes
    Last Post quantismo  
    Started by AttiM, 02-14-2024, 05:20 PM
    8 responses
    168 views
    0 likes
    Last Post jeronymite  
    Started by cre8able, Today, 04:22 PM
    0 responses
    10 views
    0 likes
    Last Post cre8able  
    Working...
    X