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

Opening Range for a 1s chart

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

    Opening Range for a 1s chart

    I am using this free indicator that works great on the 1-minute chart, but I am unable to use it on the 1-second chart - I tried changing things myself in the indicator file but am not successful in making it work - any help would be appreciated.
    8-20-19 Fixed a bug in the display of prior days. This indicator draws a line at the High and at the Low price of the range specified by the user. Features: User can specify Start Time and End time User can enable the indicator to draw a line at the mid price of the High […]

    #2
    Have you tried changing line 111 to "BarsPeriod.BarsPeriodType == BarsPeriodType.Second"? With a quick glance at the code, I think it should work.

    Comment


      #3
      @Leeroy_Jenkins​ Thank you for your response. I did but in the lines 58 & 59 when I add seconds they do not reflect in the properties of the indicator.

      Comment


        #4
        Try this. Be careful with low second values cuz it can be CPU intensive.

        Filename.zip

        Comment


          #5
          @Leeroy_Jenkins​ Th​ank you so much - that works perfectly. Cheers

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Balage0922, Today, 07:38 AM
          0 responses
          3 views
          0 likes
          Last Post Balage0922  
          Started by JoMoon2024, Today, 06:56 AM
          0 responses
          6 views
          0 likes
          Last Post JoMoon2024  
          Started by Haiasi, 04-25-2024, 06:53 PM
          2 responses
          19 views
          0 likes
          Last Post Massinisa  
          Started by Creamers, Today, 05:32 AM
          0 responses
          6 views
          0 likes
          Last Post Creamers  
          Started by Segwin, 05-07-2018, 02:15 PM
          12 responses
          1,786 views
          0 likes
          Last Post Leafcutter  
          Working...
          X