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

Range high/low/close

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

    Range high/low/close

    hello,
    I see many indicators in nt8 forum which display high and low of a range but unable to find which shows close of that range also. can some help me with that?
    thanks

    #2
    Hello hir04068,

    Thanks for your post.

    I'm unsure what you are asking for, can you provide clarification and/or an example to illustrate?

    What would constitute a close of a range?

    Do you mean the close of the last bar of the range?

    Do you mean the highest close in the range (or the lowest close)?
    Paul H.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_PaulH View Post
      Hello hir04068,

      Thanks for your post.

      I'm unsure what you are asking for, can you provide clarification and/or an example to illustrate?

      What would constitute a close of a range?

      Do you mean the close of the last bar of the range?

      Do you mean the highest close in the range (or the lowest close)?
      yes
      close of the last bar in the range.

      Comment


        #4
        Hello hir04068,

        Thanks for your reply.

        What method are you using to specify the range period?

        Can you provide an example?
        Paul H.NinjaTrader Customer Service

        Comment


          #5
          hello,
          https://ninjatraderecosystem.com/use...nge-indicator/
          like in this indicator, I can select the time period for example from 9.00 am to 10.30 am then it will display high and low of that time period with ray drawn at those levels. if it can also show close of 10.30 am bar.

          Comment


            #6
            Hello hir04068,

            Thanks for your reply.

            You could use something like:

            if (Times[0][0].TimeOfDay == new TimeSpan(10, 30, 0))
            {
            Print ("Range Close = "+Close[0]); // print to the output window the close of the bar that is the end of the range period.
            }
            Paul H.NinjaTrader Customer Service

            Comment


              #7
              hey,
              I am sorry but I lack coding knowledge but if the help I can edit the original one but need little instruction on how to do it and where to add code.
              thanks

              Comment


                #8
                Hello hir04068,

                Thanks for your reply.

                We can leave this thread open for any forum members that would like to assist you.

                We don't provide step by step coding direction/changes. I can provide our references to education sources to get you started with Ninjascript.

                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.

                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.

                Finally, we also have a vast EcoSystem of NinjaScript Consultants that would be happy to write or modify any NinjaScript at your request. If those services interest you, we can have a representative of our EcoSystem reach out with more information.
                Paul H.NinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by lollers, Yesterday, 03:26 AM
                1 response
                48 views
                0 likes
                Last Post lollers
                by lollers
                 
                Started by Salahinho99, 05-05-2024, 04:13 AM
                7 responses
                58 views
                0 likes
                Last Post Salahinho99  
                Started by knighty6508, 05-10-2024, 01:20 AM
                4 responses
                28 views
                0 likes
                Last Post knighty6508  
                Started by OllieFeraher, 05-09-2024, 11:14 AM
                6 responses
                19 views
                0 likes
                Last Post OllieFeraher  
                Started by PaulMohn, 05-02-2024, 06:59 PM
                2 responses
                44 views
                0 likes
                Last Post PaulMohn  
                Working...
                X