Announcement

Collapse
No announcement yet.

Kelner Bands Avg Tru Range

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

  • Kelner Bands Avg Tru Range

    Hi Anyone,

    I'm not even a novice in programming, and I'm at a loss as to how to apply to a chart a study that I downloaded (Keltner) to my esignal library folder. Also how to change the parameters.

    What I'm looking for is a Keltner Band study with a 7-period EMA with the upper and lower bands a distance of one Avg. true range.


    I'm also looking for an RSI indicator of 5 periods with a 13 period EMA of that 5 period RSI.

    I'm afraid the Wizard isn't helping much.

    Mnay thanks.

    BobK
    bobk

  • #2
    This will do the same as keltner channels,you just have to change the period to your liking.

    Fibbgann
    Attached Files
    Excellent book on JavaScript for beginners

    Comment


    • #3
      How to access efs studies... just right click on the advanced chart.
      Attached Files
      Excellent book on JavaScript for beginners

      Comment


      • #4
        Category: Keltner
        Description: Keltner study with a 20 period exponential moving average of the basis line and bands based on 2.5 * Average True Range.

        Parameters: nInputLength: Default is 20 (number of periods for basis line)
        nRangeFactor: Default is 2.5 (multiplier for the bands)
        Notes:

        Click here for info and an efs library of many efs's.











        /*********************************
        Provided By : eSignal. (c) Copyright 2003
        *********************************/

        function preMain() {
        setPriceStudy(true);

        setStudyTitle("Keltner (ATR Bands) ");

        setCursorLabelName("K-Upper", 0);
        setCursorLabelName("K-Basis", 1);
        setCursorLabelName("K-Lower", 2);

        setDefaultBarFgColor(Color.blue, 0); // upper
        setDefaultBarFgColor(Color.red, 1); // basis
        setDefaultBarFgColor(Color.blue, 2); // lower
        }

        function ATR(nInputLength) {
        var dSum = 0;
        var dH = high(0, -nInputLength);
        var dL = low(0, -nInputLength);
        var dC = close(-1, -nInputLength);
        if (dH == null || dL == null || dC == null) {
        return;
        }
        for (i = 0; i < nInputLength; ++i) {
        var vTrueHigh = Math.max(dH[i], dC[i]);
        var vTrueLow = Math.min(dL[i], dC[i]);
        var vTrueRange = (vTrueHigh - vTrueLow);
        dSum += vTrueRange;
        }
        dSum /= nInputLength;
        return dSum;
        }

        var BarCntr = 0;
        function main(nInputLength, nRangeFactor) {
        if(nInputLength == null)
        nInputLength = 20;
        if(nInputLength <= 0)
        nInputLength = 20;

        if(nRangeFactor == null)
        nRangeFactor = 2.5;
        if(nRangeFactor <= 0)
        nRangeFactor = 2.5;

        if (getBarState() == BARSTATE_NEWBAR)
        BarCntr += 1;

        if (BarCntr < nInputLength) {
        return;
        } else {
        var dKeltnerBasis= call("/Library/KeltnerEMA.efs", nInputLength);
        var dATR = ATR(nInputLength);
        return new Array(dKeltnerBasis + (nRangeFactor * dATR), dKeltnerBasis, dKeltnerBasis -
        (nRangeFactor * dATR));
        }
        }
        Last edited by FibbGann; 12-03-2003, 07:40 PM.
        Excellent book on JavaScript for beginners

        Comment


        • #5
          You can find the RSI/EMA efs at this link

          Click here

          Fibbgann
          Excellent book on JavaScript for beginners

          Comment


          • #6
            I would just like to clarify that Keltner bands do not include ATR for the bands, but rather an average of the High-Low range which I term as unmodified High-Low. It is Stoller with his STARC bands that introduced the use of ATR for the bands. However many people have merged the 2 and call anything with ATR as Keltner but it should be termed as Stoller.

            If you want to see Stoller bands in action (which in this thread has been termed as Keltner) you can download a script as per the following link:-



            Robert

            Comment


            • #7
              If anyone is interested in exploring other bands such as Anderson, Bollinger, Headley, Keltner, Kirshenbaum & Stoller with a "twist" please have a look at the following thread:-



              Robert

              Comment

              Working...
              X