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

Test if current high equals any prior high

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

    Test if current high equals any prior high

    Am new to this so apols if this is obvious.

    I am using range bars and want to test if the high of the current bar is equal to the high of any bar in a lookback period.

    int i=0;
    for (i=1; i<50; i++);
    if (High[0] == High[i])

    This didn't work so grateful for any help.

    Thanks
    Last edited by ukmountainbiker; 09-09-2018, 04:09 PM.

    #2
    Nvmd, sorted it

    Comment


      #3
      Hello ukmountainbiker,

      Thanks for your post and welcome to the NinjaTrader forum.

      Glad you have it sorted.
      Paul H.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by AveryFlynn, Today, 04:57 AM
      1 response
      10 views
      0 likes
      Last Post NinjaTrader_Erick  
      Started by Max238, Today, 01:28 AM
      4 responses
      37 views
      0 likes
      Last Post Max238
      by Max238
       
      Started by r68cervera, Today, 05:29 AM
      1 response
      8 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by geddyisodin, Today, 05:20 AM
      1 response
      11 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by timko, Today, 06:45 AM
      2 responses
      14 views
      0 likes
      Last Post NinjaTrader_ChristopherJ  
      Working...
      X