Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to program Higher-High Higher-Low

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

    How to program Higher-High Higher-Low

    How to program to identify HH (Higher High) or LL (Lower Low) or LH (Lower High) or Higher Low( HL) above and below each Peak as shown in below chart?
    Attached Files

    #2
    Hi TickJob,

    I am unsure at what level of programmer you are but you can start with our Indicator Development tutorials located in our help guide under the NinjaScript section. This will give you a foundation for programming indicators in NinjaTrader.

    Checking for higher highs can be done like:

    Code:
    if (High[0] > High[1])
        Print("We have a higher high");
    
    if (Low[0] < Low[1])
        Print("We have a lower low");
    RayNinjaTrader Customer Service

    Comment


      #3
      Hi Ray,

      Thanks for your reply. I have some knowledge on C#.
      with reference to my chart, I am looking for the "peak" form by many bars, not next bar higher or lower.

      Comment


        #4
        The Swing indicator will give you values for the most recent peaks and troughs. It will give you a value representing bars ago for most recent swing points.

        Additional reference information is located here - http://www.ninjatrader-support.com/H...eToNinjaTrader
        RayNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

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