Announcement

Collapse
No announcement yet.

Coding help

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

  • Coding help

    I'm looking to plot a 20 period exponential moving average with keltner channels 2.5 avg true ranges above and below the exponential moving average. Any ideas on coding this? Thanks.

  • #2
    Re: Reply to post 'Coding help'

    mitchh
    If you check your Formulas folder under Library you should find a
    KeltnerEmaBands.efs.
    You may just need to set the length and adjust the bands in the formula.
    Alex


    Last edited by ACM; 03-24-2003, 02:58 PM.

    Comment


    • #3
      I just created a Keltner 20 with ATR study. Can you tell me a little more about what you want plotted?
      Attached Files

      Comment


      • #4
        Re: Re: Reply to post 'Coding help'

        Hey thanks for posting! I tried inserting that formula but I'm only able to adjust the moving average length. I took a look at the formula in the formula editor can couldn't make much sense of the code. Is it plotting the bands based on ATR? How do I adjust the parameters so that I can set it to 2.5 atr's? Thanks

        Originally posted by Alexis C. Montenegro
        mitchh
        If you check your Formulas folder under Library you should find a
        KeltnerEmaBands.efs.
        You may just need to set the length and adjust the bands in the formula.
        Alex

        Comment


        • #5
          I want to plot the EMA right on the bars and have the bands plotted 2.5 average true ranges above and below the EMA. Your pictures is what I'm looking for, but the width of the bands doesn't appear to be 2.5 atrs. Any ideas? Thanks!

          Originally posted by dloomis
          I just created a Keltner 20 with ATR study. Can you tell me a little more about what you want plotted?

          Comment


          • #6
            mitchh

            If you are using the formula I pointed out then open it with the Editor and substitute Line 41 with the following

            dHminL += (dHigh[i] - dLow[i])*2.5;

            This might do what you want.
            Alex

            Comment


            • #7
              This efs might help too
              Attached Files

              Comment


              • #8
                oops, forgot the 2.5 part

                see attached
                Attached Files

                Comment

                Working...
                X