Announcement

Collapse
No announcement yet.

Can you help identify these bands?

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

  • Can you help identify these bands?

    Here is some code that was forwarded to me from another trader. He called them Fibonnaci Bollingers, but to me they don't really resemble either.

    I was hoping someone could help me identify them so that I could code them into and EFS study.

    TH:=If(Ref(C,-1) > H,Ref(C,-1),H);
    TL:=If(Ref(C,-1) < L,Ref(C,-1),L);
    TR:=TH-TL;
    TRA:= Wilders(TR,Periods);

    MidPoint:= Mov(pr,Periods,mat);

    UpperBand3:= MidPoint + (factor3 * TRa);
    UpperBand2:= MidPoint + (factor2 * TRa);
    UpperBand1:= MidPoint + (factor1 * TRa);

    LowerBand1:= MidPoint - (factor1 * TRa);
    LowerBand2:= MidPoint - (factor2 * TRa);
    LowerBand3:= MidPoint - (factor3 * TRa);

    Any help would be appreciated.

    James

  • #2
    James
    In looking at the formula it seems that the bands are calculated by simply adding to or subtracting from a moving average the Average True Range multiplied by a factor.
    The attached efs will perform the calculations explained above. All parameters can be edited through Edit Studies.
    Alex

    Attached Files

    Comment


    • #3
      James
      FWIW if I remember correctly these bands are also known as Stoller Bands or Channel
      Alex

      Comment


      • #4
        Originally posted by Alexis C. Montenegro
        James
        FWIW if I remember correctly these bands are also known as Stoller Bands or Channel
        Alex
        Good call Alexis!

        I googled "Stoller Bands" and found the explanation but posting the link would violate eSignal forum rules and posting the explanation could be considered copyright infringement.

        Comment


        • #5
          Buzz,

          Would you PM or email the link to me please?

          James

          Originally posted by buzzhorton
          Good call Alexis!

          I googled "Stoller Bands" and found the explanation but posting the link would violate eSignal forum rules and posting the explanation could be considered copyright infringement.

          Comment


          • #6
            Alexis,

            What do you make of this line of code?

            TRA:= Wilders(TR,Periods);

            It looks like some sort of smoothing, or volatility formula. I know I have heard the term Wilders, but I can't remeber anything about it.

            James

            Comment


            • #7
              James
              That is Metastock's function for Wilder's average.
              Alex

              Comment


              • #8
                Keltner Channel

                So then what I am really looking at is a variation of the Keltner Channel using the ATR (Wilders average true range) multiplied by some factor?

                UpperBand3:= MidPoint + (factor3 * TRa)

                Comment


                • #9
                  James
                  That is correct.
                  Alex

                  Comment


                  • #10
                    Very interesting.

                    Thanks for the help guys.

                    Comment


                    • #11
                      Wilders Smoothing

                      I think I am finally getting the bands to work the way I wanted, but I still have one problem.

                      I can't find information on Wilders Smoothing, or I can't find detailed information on Wilders Smoothing.

                      I am interested in plotting Wilders Smoothed Moving Averages. Does anyone have the formula for this?

                      Thanks

                      Comment


                      • #12
                        Re: Wilders Smoothing

                        Try a google search:



                        Also, how did you get the bands to work the way you wanted?

                        Please post a screenshot and parameters.

                        THANKING YOU IN ADVANCE.


                        Originally posted by Jharvey407
                        I think I am finally getting the bands to work the way I wanted, but I still have one problem.

                        I can't find information on Wilders Smoothing, or I can't find detailed information on Wilders Smoothing.

                        I am interested in plotting Wilders Smoothed Moving Averages. Does anyone have the formula for this?

                        Thanks

                        Comment


                        • #13
                          Buzzhorton,

                          Thanks I did an extensive google search before I posted.

                          But I like I said in my previous post, I can't find detailed information on how to calculate the Wilders smoothed moving average.

                          Does anyone have the formula, or any useful information.

                          Thanks

                          Comment


                          • #14
                            Did you see this?

                            October 2002
                            TRADERS' TIPS



                            PHP Code:
                            /*********************** 
                            Copyright © eSignal, a division of Interactive Data Corporation. 2002. All rights reserved. 
                            This sample eSignal Formula Script (EFS) may be modified and saved under a new filename; 
                            however, eSignal is no longer responsible for the functionality once modified. 
                            eSignal reserves the right to modify and overwrite this EFS file with each new release. 
                            ******************************/ 

                            function preMain() {

                             
                            setPriceStudy(false);

                             
                            setStudyTitle("SRSI");

                             
                            setCursorLabelName("SRSI"0);

                             
                            setDefaultBarFgColor(Color.blue0);

                            }

                            Smooth23 = new Array();

                            function 
                            main(Len) {

                             if (
                            Len == null)

                              
                            Len 10;

                             

                             var 
                            count 0;

                             var 
                            CU23 0;

                             var 
                            CD23 0;

                             var 
                            SRSI 0;

                             var 
                            0;

                             if (
                            getBarState() == BARSTATE_NEWBAR){

                              for(
                            Len 10i--)

                               
                            Smooth23[i] = Smooth23[1];

                              
                            Smooth23[0] = ( close() + close(-1) + close(-2) + close(-3) ) / 6;

                             }

                             
                            CU23 0;

                            CD23 0;

                             for(
                            0Len 1i++){

                              if(
                            Smooth23[i] > Smooth23[1])

                               
                            CU23 CU23 Smooth23[i] - Smooth23[1];

                              if(
                            Smooth23[i] < Smooth23[1])

                               
                            CD23 CD23 Smooth23[1] - Smooth23[i];

                             }

                             if(
                            CU23 CD23 != 0)

                              
                            SRSI CU23/(CU23 CD23);

                             return 
                            SRSI;


                            Attached Files

                            Comment


                            • #15
                              Smoothed Moving Average

                              Yes buzz, I did see that.

                              I am not sure what your point is though, as I have stated repeatedly, I am looking for the formula for the

                              Smoothed Moving Average

                              and what you have directed me too is a smoothed RSI.

                              Comment

                              Working...
                              X