Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Looking for bollingerband indicator()

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

    Looking for bollingerband indicator()

    Do you know how we can get it? I can not find in the Ninja Help Guide? I need to this function to port over Tradestation ESL script
    BollingerBand (Function) The BollingerBand function calculates an n standard deviation (StdDev) line (usually 2 StdDevs) above or below a center-line simple moving average.
    Syntax

    BollingerBand(Price, Length, NumDevs)
    Returns (Double)

    A numeric value for the current bar.


    BollingerBand (Function) Example

    Assigns to Value1 the upper BollingerBand, and assigns to Value2 and plots the lower BollingerBand, for each bar based on 2 standard deviations a simple 20 bar average of the Close, then plots Value1 and Value2:
    Value1 = BollingerBand(Close,20,2);
    Value2 = BollingerBand(Close,20,-2);

    Parameters

    Name
    Type
    Description
    Price
    Numeric
    Specifies which bar value (price, function, or formula) to be considered for the center-line average.
    Length
    Numeric
    Sets the number of bars to consider for the center-line average.
    NumDevs
    Numeric
    Sets the number of standard deviations above (positive) or below (negative) the center-line average.

    #2
    it's already built-in the name is bollinger
    Just open the chart, press ctrl+i and select bollinger from the list

    hope it helps
    Last edited by roonius; 01-08-2009, 08:45 PM.

    Comment


      #3
      Thanks roonius!

      xewoox, please see this helpguide article on how to call the Bollinger Bands from NinjaScript - http://www.ninjatrader-support.com/H...Bollinger.html

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      153 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      89 views
      1 like
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      133 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      127 views
      1 like
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      107 views
      0 likes
      Last Post CarlTrading  
      Working...
      X