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

Find Average Daily Range using Intraday data

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

    Find Average Daily Range using Intraday data

    Hi,

    I'm struggling a bit and wondered if anyone could help.

    I would like to develop an indicator that gives the average daily range (i.e. High[0] - Low[0] on daily bars) when I'm using intraday data, e.g. 15min bars.

    Is this possible to calculate either from the intraday data, or from Add(new series of daily bars)? Any help much appreciated - thanks!

    Olly

    #2
    Hello,

    Thank you for your forum post.

    Both ways you described are both ways you can do this (Multi Series in indicators isnt support in NinjaTrader 6.5 only NinjaTrader 7 however)

    However before we get into this might be worth taking a look at the following indicator in our forum that already does this.



    Let me know if I can be of further assistance.

    Comment


      #3
      Thanks Brett - much appreciated. It works nicely.

      Olly

      Comment


        #4
        Hi Brett, is this indicator the same as the PrevOHLC? I'm having trouble importing it.

        The following error message appears:

        "The existing file 'Indicator/@PriorDayOHLC.cs' on your PC is a newer version of the one contained in the NinjaScript Archive File you are importing. Would you like to replace the existing file?"

        Upon clicking Yes, the following error message appears:

        "Import failed. The NinjaScript Archive File may contain duplicate method names that already exists on your PC or there is a required file missing on either your PC or in the import archive".

        Comment


          #5
          nicbizz, it is not not the same as PreviousDayOHLC.

          Please follow the instructions below to see where the errors are coming from after compiling the indicator. This will allow you to debug the indicator/strategy or remove it from your PC. If you are wondering why you receive an error when compiling only one indicator, it is because NinjaTrader compiles all indicators and strategies- not just one.
          • Open NinjaTrader
          • From the Control Center select the Tools menu--> select the Edit NinjaScript menu item--> select Indicator
          • Select an indicator and double click on it.
          • A new window will appear and you will need to right click in the window and select Compile to compile the indicators.
          • At the bottom of the window a new section will appear were you can find the error locations.
          • From there you have the option to remove the indicator or debug it.

          Let me know if this does the trick for you.
          AustinNinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Segwin, 05-07-2018, 02:15 PM
          14 responses
          1,788 views
          0 likes
          Last Post aligator  
          Started by Jimmyk, 01-26-2018, 05:19 AM
          6 responses
          837 views
          0 likes
          Last Post emuns
          by emuns
           
          Started by jxs_xrj, 01-12-2020, 09:49 AM
          6 responses
          3,293 views
          1 like
          Last Post jgualdronc  
          Started by Touch-Ups, Today, 10:36 AM
          0 responses
          12 views
          0 likes
          Last Post Touch-Ups  
          Started by geddyisodin, 04-25-2024, 05:20 AM
          11 responses
          62 views
          0 likes
          Last Post halgo_boulder  
          Working...
          X