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 CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      34 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 05-10-2026, 08:12 PM
      0 responses
      22 views
      0 likes
      Last Post CarlTrading  
      Started by Hwop38, 05-04-2026, 07:02 PM
      0 responses
      185 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Started by CaptainJack, 04-24-2026, 11:07 PM
      0 responses
      344 views
      0 likes
      Last Post CaptainJack  
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      266 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X