Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Finding next lower low/higher high

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

    Finding next lower low/higher high

    Hello,
    I'm trying to create an indicator that is beyond my programming ability and am wondering if I can get some pointers or better yet a link to an indicator that someone else has already created.
    I simply want to find the next lower low or higher high of and indicator.
    Can someone give me the steps to creating this. I will do the research. I just need direction.
    Thanks
    Attached Files

    #2
    Hello CaptainAmericaXX,

    Thanks for your post.

    You can use the Swing indicator for this purpose. Just use the indicator of choice as the input series to the swing indicator (and make sure to set swing indicator to the same panel as the input indicator. Please see the attached example.
    Attached Files

    Comment


      #3
      Paul,
      Thank you for the idea. It worked perfectly.
      I'm now trying to create an swing indicator based on that idea. In the Swing indicator code I replaced Low[0] and High[0] with RMI(High, 14, 3)[0], etc. However the values aren't coming out the same as just changing the input series in the Data box of the Swing indicator. Do you have any ideas what else I would have to change to match what is being changed with the Input series change?
      Attached Files

      Comment


        #4
        Hello CaptainAmericaXX,

        Thanks for your post.

        The issue is that the RMI value does not have a High or Low, just a Close value. The bar data at any given point can have a high and a low, however the indicator RMI will only have the (its) Close value. If you replace all instances of the High and Low with Close, your modified indicator will line up precisely.

        Also, in your code you had a few lines like:

        if (RMI(High, 14, 3)[0] > High[strength] && swingHighSwings[strength] > 0.0) Note that you did not change the High[strength]. Here is what it should look like:

        if (RMI(Close, 14, 3)[0] > RMI(Close, 14, 3)[strength] && swingHighSwings[strength] > 0.0)

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        596 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        343 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        103 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        556 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        554 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X