Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Bollinger from Hull MA?

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

    Bollinger from Hull MA?

    Hi,

    Is there any way to use a Hull (or other MA) as the source for bollinger bands so they're smoothed more than the regular ones? Image attched shows a 20 period JHMA-smoothed BB from Tradestation)

    Many thanks
    Attached Files
    Last edited by 5iver; 11-10-2008, 04:12 PM.

    #2
    Hi 5iver,

    Thanks for your post.

    Yes, the Bollinger Bands have an 'inputData' parameter, please also review this link http://www.ninjatrader-support.com/H...Bollinger.html

    This input allows you to feed your custom MA (or HMA) value into them to arrive at the indicator in the picture you posted.

    Our second NinjaScript indicator building tutorial will be of good help, it deals with 'indicator on indicator' calculations - http://www.ninjatrader-support.com/H...verview22.html

    Basically you want to calculate the HMA value first and then feed that series into the Bollinger Bands as input.




    Originally posted by 5iver View Post
    Hi,

    Is there any way to use a Hull (or other MA) as the source for bollinger bands so they're smoothed more than the regular ones? Image attched shows a 20 period JHMA-smoothed BB from Tradestation)

    Many thanks
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Thanks for the speedy reply :-) I'll do the homework and if I get it right I'll post a new indie in the download section.

      Comment


        #4
        OK, I've worked out how to change the regular Bollinger into an EMA-derived or HMA-derived set of plots, but neither of them are giving me the result I was hoping for...

        Is there actually a way to add a simple smoothing factor to an SMA?

        Or is there a JTHMA like there is in TS? Something that'll just iron out the kinks...?

        I see there's an example of a CCI with HMA averaging that's giving the right smoothing effect, but I have no coding skills...

        Any help much appreciated
        Last edited by 5iver; 11-11-2008, 06:56 AM.

        Comment


          #5
          Hi 5iver,

          Yes, the HMA is build-in in NinjaTrader.

          Please review this link here - http://www.ninjatrader-support.com/H...verageHMA.html

          Here is the code snippet you want to use for smoothing your upper Bollinger Band with a HMA with Length of 10.

          Code:
          double mySmoothBand = HMA(Bollinger(High, 2, 20).Upper, 10)[0];
          
          Then progress the same way for the other values you need to have smoothed.

          Here are two links of interest -

          1. http://www.ninjatrader-support.com/H...iesObject.html

          2. http://www.ninjatrader-support2.com/...ead.php?t=7299



          Originally posted by 5iver View Post
          OK, I've worked out how to change the regular Bollinger into an EMA-derived or HMA-derived set of plots, but neither of them are giving me the result I was hoping for...

          Is there actually a way to add a simple smoothing factor to an SMA?

          Or is there a JTHMA like there is in TS? Something that'll just iron out the kinks...?

          I see there's an example of a CCI with HMA averaging that's giving the right smoothing effect, but I have no coding skills...

          Any help much appreciated
          Last edited by NinjaTrader_Bertrand; 11-11-2008, 09:07 AM.
          BertrandNinjaTrader Customer Service

          Comment


            #6
            Well, despite my newbie coding skills... it worked. thankyou.

            Comment


              #7
              You are welcome 5iver, great it all worked out - good job!!

              Originally posted by 5iver View Post
              Well, despite my newbie coding skills... it worked. thankyou.
              BertrandNinjaTrader Customer Service

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Franck Z, Today, 09:49 AM
              0 responses
              5 views
              0 likes
              Last Post Franck Z  
              Started by pvtrader, Today, 08:02 AM
              2 responses
              7 views
              0 likes
              Last Post pvtrader  
              Started by Natoc, Today, 03:04 AM
              1 response
              17 views
              0 likes
              Last Post NinjaTrader_Jason  
              Started by Rudy2323, Today, 02:56 AM
              2 responses
              28 views
              0 likes
              Last Post Rudy2323  
              Started by tonynt, Yesterday, 02:07 PM
              1 response
              38 views
              0 likes
              Last Post NinjaTrader_Jason  
              Working...
              X