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 lightsun47, Today, 03:51 PM
          0 responses
          4 views
          0 likes
          Last Post lightsun47  
          Started by 00nevest, Today, 02:27 PM
          1 response
          8 views
          0 likes
          Last Post 00nevest  
          Started by futtrader, 04-21-2024, 01:50 AM
          4 responses
          44 views
          0 likes
          Last Post futtrader  
          Started by Option Whisperer, Today, 09:55 AM
          1 response
          13 views
          0 likes
          Last Post bltdavid  
          Started by port119, Today, 02:43 PM
          0 responses
          9 views
          0 likes
          Last Post port119
          by port119
           
          Working...
          X