Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Need Help with Delta and Bollinger Bands

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

    Need Help with Delta and Bollinger Bands

    Hello,

    I was trying to code an indicator on my own and I am hoping you guys can help me get this put together. The code compiles successfully but nothing plots when I add it to the chart. I think this could be a useful indicator for the community.

    What I was essentially doing was placing a Bollinger Band on the Order Flow Cumulative Delta indicator that I have with the lifetime license of NT8 that I have. And on the Bollinger Bands I changed the input from Close to the Cumulative Delta Indicator to get the screenshot you see attached.

    I was trying to consolidate these two indicators in one because I need to have the plots of the upper and lower bands available as well as the delta of each bar. Also I tried to export as a NT8 zip but could not so attached it from and saved it as a note++ file (C# format).

    Again the code compiled without any errors but nothing plots and not sure where I went wrong. If you could please help and I don't mind sharing this indicator with the community!

    Thank you

    Peter
    Attached Files

    #2
    Hello peterp1127,

    Thank you for your post and for sharing your script with the community.

    Do you receive any error messages in the Log tab of the Control Center or the NinjaScript Output window when you apply your indicator to a chart? If so, what do these errors report?
    This information could help us to identify what might be causing the indicator to not plot so we may understand what resolution might be needed.

    I look forward to your reply.
    Emily C.NinjaTrader Customer Service

    Comment


      #3
      Hello Emily, thank you for your reply, I checked the log this was the error:

      Indicator 'DeltaDeviationpp': Error on calling 'OnBarUpdate' method on bar -1: You are accessing an index with a value that is invalid since it is out-of-range.

      Comment


        #4
        Here is the file looks like it it did not attach initially
        Attached Files

        Comment


          #5
          Hello peterp1127,

          Thank you for your reply.

          Based on that error message, it sounds as though you will need to add some logic to make sure that you have enough bars on your chart to load the data that your indicator is trying to access. For more information, please see the help guide page here:


          Please let me know if I may be of further assistance.
          Emily C.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by pibrew, Today, 06:37 AM
          0 responses
          4 views
          0 likes
          Last Post pibrew
          by pibrew
           
          Started by rbeckmann05, Yesterday, 06:48 PM
          1 response
          14 views
          0 likes
          Last Post bltdavid  
          Started by llanqui, Today, 03:53 AM
          0 responses
          6 views
          0 likes
          Last Post llanqui
          by llanqui
           
          Started by burtoninlondon, Today, 12:38 AM
          0 responses
          11 views
          0 likes
          Last Post burtoninlondon  
          Started by AaronKoRn, Yesterday, 09:49 PM
          0 responses
          16 views
          0 likes
          Last Post AaronKoRn  
          Working...
          X