Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

current day OHL indicator

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

    current day OHL indicator

    hi,
    when I apply this indicator it draws high or low on every bar if its value is higher or lower then previous bar. but I just want it to draw it only on that bar which is the highest or lowest value for the current day.
    Attached Files

    #2
    Hello hir04068,

    Thanks for your post.

    With the indicator CurrentDayOHL, there are no options to display only on the bar with the current high or low of the session. I am unaware of any other indicator that would provide this.

    You can create a custom indicator to accomplish your goal.

    If you would like to do this yourself, we can provide links to educational materials to get you started with Ninjascript programming which is based on C# programming language.

    Alternatively, if you would like the indicator created for you, we can provide a link to 3rd party programmers who can create to your specifications.

    You could also create this using the strategy builder, however you would have to enable the strategy every time you restarted.

    Comment


      #3
      Originally posted by NinjaTrader_PaulH View Post
      Hello hir04068,

      Thanks for your post.

      With the indicator CurrentDayOHL, there are no options to display only on the bar with the current high or low of the session. I am unaware of any other indicator that would provide this.

      You can create a custom indicator to accomplish your goal.

      If you would like to do this yourself, we can provide links to educational materials to get you started with Ninjascript programming which is based on C# programming language.

      Alternatively, if you would like the indicator created for you, we can provide a link to 3rd party programmers who can create to your specifications.

      You could also create this using the strategy builder, however you would have to enable the strategy every time you restarted.
      Ya i would like your help and other forum members participation also.
      thanks

      Comment


        #4
        Hello hir04068,

        Thanks for your reply.

        Did you want the link for 3rd party programmers?

        Did you want the links for getting started with Ninjascript?

        Did you want to create this in the strategy builder?

        Comment


          #5
          I would like to build it my self

          Comment


            #6
            Hello hir04068,

            Thanks for your reply.

            NinjaScripts are built on C#. While we do not provide programming education services in the Support Department, there are a vast number of educational C# resources external to NinjaTrader and we do have some tutorials and tools that can assist in the learning process.

            Many users report that a good way to start before fully learning C# is to go through the NinjaTrader 7 NinjaScript tutorials in the help documentation to get a fundamental grasp on .NET framework and how it is used in NinjaScript. From there I suggest looking at the Code Breaking changes for NinjaTrader 8 to understand the differences between NinjaTrader 7 and NinjaTrader 8.

            You can view the tutorials for NinjaTrader 7 here: https://ninjatrader.com/support/help...?tutorials.htm

            Although we do not currently provide NinjaScript tutorials like in NinjaTrader 7, we do provide in-depth help documentation on developing NinjaScripts for NinjaTrader 8. We also provide samples and a complete reference of the language. More in depth educational resources can be found elsewhere throughout the internet.

            You can find the educational resources here: http://ninjatrader.com/support/helpG..._resources.htm

            Once you have a basic understanding of C#, I suggest following the documented Code Breaking changes between NinjaTrader 7 and NinjaTrader 8. This page also gives an overview for NinjaScripts in NinjaTrader 8.

            You can find the Code Breaking changes here: http://ninjatrader.com/support/helpG...ng_changes.htm

            Other users have wrote in about this information in our support forums here: https://ninjatrader.com/support/foru...d.php?p=488807

            Also available are webinars on the NinjaScript editor and the Strategy Builder. The Strategy Builder can be used to generate NinjaScript syntax for NinjaScript strategies. You may wish to create a strategy and clicking View Code after each piece of logic created in the Builder to observe the generated syntax.

            Strategy Builder 301: https://www.youtube.com/watch?v=HCyt90GAs9k

            NinjaScript Editor 401: https://www.youtube.com/watch?v=K8v_2ONBbqI

            You can register for live webinars here: https://ninjatrader.com/PlatformTraining

            Our documentation will be your best friend while developing, and the complete supported NinjaScript interface can be referenced here: http://ninjatrader.com/support/helpGuides/nt8/en-us/

            The information above is publicly available.

            Comment


              #7
              hello,
              I am using 2 data series in the same chart. first series with 20 days to load and 2nd with 1 day to load.
              I am using 2 indicators 1} prior day OHLC and 2} current day OHL.
              for input series, I have selected the 2nd data series.
              now prior day ohlc works properly as it plots on current days levels and doesn't show historical drawing, but current-day OHL draws historical levels also.

              Comment


                #8
                Please reply////////

                Comment


                  #9
                  Hello hir04068,

                  Thanks for your replies.

                  I did not see a question in your post #7.

                  I am not sure what you are trying to do with your process listed in post#7.

                  The PriorDayOHLC will show the values of the previous day so I do not see how that relates to your specification in the first post of "I just want it to draw it only on that bar which is the highest or lowest value for the current day.".



                  Comment


                    #10
                    Why doesnt Nt just fix the indicator so it displays the current high and low of the day or rename the indicator?

                    Comment


                      #11
                      Hello poeds,

                      Thanks for your post.

                      If you are referring to the indicator Current Day OHL, the indicator does show, with a plot, the Current High, the Current Low and the Current Open. If that does not meet your needs, please clarify what you are looking for.

                      If I have misunderstood what you saying with, "Why doesnt Nt just fix the indicator so it displays the current high and low of the day or rename the indicator?" please clarify further with what specifically does not work that you feel needs to be fixed.

                      Comment


                        #12
                        Hi Paul
                        Thanks for the reply.
                        The current hi or low for the day has one value, that value should be represented by a horizontal line by the Current Low high indicator at the current value not show an historical staircase of values of old highs and lows.

                        Comment


                          #13
                          Hello poeds,

                          Thanks for your reply.

                          While in your definition you do not want the historical values there are others who do want to see the historical values.

                          With the indicator you do have adjustments to the way it is displayed. So to meet your definition of "The current hi or low for the day has one value, that value should be represented by a horizontal line by the Current Low high indicator at the current value not show an historical staircase of values of old highs and lows." you can change the indicators default display settings. In the indicator panel, expand each of the plots and change the "PlotStyle" from "Square" to "Horizontal Line". I've have attached an example of both "Horizontal line" and "square". I left them both with their "dashStyle" set to Dash and a width of 2, these can also be changed to your suit your needs.

                          Click image for larger version

Name:	poeds-1.PNG
Views:	1735
Size:	57.9 KB
ID:	1082162

                          Comment


                            #14
                            thanks, it works as described now

                            Comment

                            Latest Posts

                            Collapse

                            Topics Statistics Last Post
                            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                            0 responses
                            670 views
                            0 likes
                            Last Post Geovanny Suaza  
                            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                            0 responses
                            379 views
                            1 like
                            Last Post Geovanny Suaza  
                            Started by Mindset, 02-09-2026, 11:44 AM
                            0 responses
                            111 views
                            0 likes
                            Last Post Mindset
                            by Mindset
                             
                            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                            0 responses
                            575 views
                            1 like
                            Last Post Geovanny Suaza  
                            Started by RFrosty, 01-28-2026, 06:49 PM
                            0 responses
                            582 views
                            1 like
                            Last Post RFrosty
                            by RFrosty
                             
                            Working...
                            X