Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

bar

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

    bar

    Hi,

    check the attached, I want to identify Higest bar in the given time. I tried the logic but it is not working check the attached and let me know what is worng with it.

    awaiting
    Attached Files

    #2
    That will not work. To check the highest bar within that time you need to set your condition to run the check once at 7:50 PM. You need to then move HighestBar to an Action. You want to set Variable0 to take on the value as deterined by HighestBar. In HighestBar you need to pass in a period that would correlate with the number of bars that it would take to bring it back to 7:25 PM. I.e. A period of 25 if you are on 1min charts. Then you can take the value of Variable0 and then use that to plot where you want your diamond.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Hi Josh,

      Problem with Highest/Lowest bar using is that they donot look back after X number of bars for example lets say i want to see 6 bars high/low so they will not be trigered until after 6 bars we get some high/low. suppose by 7:50 PM there is NO lower low bars then it cannot identify Lower bars. Check the attached today market open pic i attached. The above blue Triangles high light is showing the time and bars when we are going to find out the high and low. and the Red bar are showing highest bars.

      did you get the point?

      awaiting
      Attached Files

      Comment


        #4
        Sorry I do not follow. HighestBar has a period as defined by the user. When you move forward a few more bars your period remaining the same will result in a comparison for highest bar across a different range. For sure you will experience a lowering of your dots because you are not including those prior higher bars in your analysis.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Hi,

          Ok I have done,, code is bit length as i have no other choice and I checked on each bar if it is higher then other bars.

          thanks

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          581 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          338 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
          554 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          552 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X