Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Bollinger Band Squeeze written by NinjaTrader_MichaelM

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

    Bollinger Band Squeeze written by NinjaTrader_MichaelM

    Hello, I am messing around with this indicator NT_MichaelM wrote https://ninjatraderecosystem.com/use...band-sqeeze-2/. I can't figure something out and am wondering if he or someone else can help me. The "scale" that the BB Band Width reads out seems to vary from instrument to instrument, but usually has values between 0 and .2, though I've seen higher at the top end. I am just not sure how to read this since the BB Bandwidth scale John Bollinger developed runs from 0% to 100% (and above). In this version, I am not sure what "0.04" at the bottom end and "0.18" at the top end signify. Thanks for any direction you can give.

    Click image for larger version

Name:	Bollinger BandWidth screenshot.PNG
Views:	431
Size:	22.1 KB
ID:	1181223
    Attached Files

    #2
    Hello shocdoc,

    Thank you for your post.

    If we look at the actual code for this indicator, we can see that what gets plotted by this particular indicator is simply the current price of the upper band minus the current price of the lower band, divided by the current SMA(20) value for the primary series:

    Code:
    if (CurrentBar > Period)
    {
    Plot0[0] = (Bollinger(Deviation,Period).Upper[0] - Bollinger(Deviation,Period).Lower[0])/SMA(20)[0];
    
    }
    else
    {
    Plot0[0] = 0;
    }
    I would not expect this to plot in percentages as it's simply not designed to do so.

    Please let us know if we may be of further assistance to you.

    Comment


      #3
      Very good. Thank you.

      Comment


        #4
        Hello Everyone,

        Can someone please help me convert this indicator for intraday trading?

        Comment


          #5
          Hello Nyman,

          Thank you for your reply.

          In the support department at NinjaTrader we do not create, debug, or modify code for our clients. This is so that we can maintain a high level of service for all of our clients as well as our vendors.

          However, I will leave this thread open in case one of our users would be willing to assist.

          If you are interested in services in having the code written for you, I can have a representative of our EcoSystem reach out with more information on NinjaScript consultants who will be happy to do so.

          Please let us know if we may be of further assistance to you.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          580 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          335 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          102 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          554 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          552 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X