Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Bollinger question

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

    Bollinger question

    I'm wondering if this can be changed so that it pivots on the "high" or " Low"
    instead of the close .

    Upper.Set(SMA(Period)[0] + NumStdDev * StdDev(Period)[0]); Middle.Set(SMA(Period)[0]);
    Lower.Set(SMA(Period)[0] - NumStdDev * StdDev(Period)[0]);

    A lot of times you'll see price spike to the upper band or Lower ,but
    close well away from either . Not really a true representation of what
    is going on ....

    Correction :.... Sorry , screwed up . I'm trying to get the Percent B to pivot
    on the Bar high or low ,so it's based on the Bollinger indicator and I thought
    I'd have to edit the Bollinger first to make the percent B do what I'm looking for .
    Last edited by T2020; 02-05-2010, 12:21 PM.

    #2
    Hello T2020,

    You can use a different overload of the SMA to calculate based on the High or Low.
    Code:
     
     
    Upper.Set(SMA(High, Period)[0] + NumStdDev * StdDev(Period)[0]);
    Middle.Set(SMA(Low, Period)[0]);
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_RyanM View Post
      Hello T2020,

      You can use a different overload of the SMA to calculate based on the High or Low.
      Code:
       
       
      Upper.Set(SMA(High, Period)[0] + NumStdDev * StdDev(Period)[0]);
      Middle.Set(SMA(Low, Period)[0]);
      Thanks Ryan . I'm able to come close to the look I was hoping
      for with those changes .

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      589 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      342 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      103 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      555 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