• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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
    Paul H.NinjaTrader Customer Service

    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)
        Paul H.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by jamarc, Today, 02:30 AM
        1 response
        6 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by uday12, Yesterday, 04:19 PM
        1 response
        7 views
        0 likes
        Last Post NinjaTrader_PaulH  
        Started by grose, Today, 06:53 AM
        2 responses
        7 views
        0 likes
        Last Post grose
        by grose
         
        Started by Bobisam, Yesterday, 04:57 PM
        1 response
        21 views
        0 likes
        Last Post NinjaTrader_PaulH  
        Started by voltlon, Yesterday, 05:18 PM
        1 response
        10 views
        0 likes
        Last Post NinjaTrader_PaulH  
        Working...
        X