Announcement

Collapse
No announcement yet.

PLdot

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

  • PLdot

    The PLdot from the last three bars is plotted as a dot (or line) on the next bar to appear.
    The formula for the PLdot is the average of the high, low and close of the last three bars.


    PLdot = {Avg[H(1),L(1),C(1)]+Avg[H(2),L(2),C(2)]+Avg[H(3),L(3),C(3)]}/3

    Thanks in advance for your help !

  • #2
    The PLdot is the first major building block os Drummond Geometry.
    PL stands for Point and Line.

    The PLdot can be applied to any commodity, future, or stock and is a short-term moving average based on three bars of data.

    Comment


    • #3
      //PLdot can be plotted with this efs

      var vSMA3_of_HLC3 = new MAStudy(3, 0, "HLC/3", MAStudy.SIMPLE);
      function preMain() {
      setPriceStudy(true);
      setStudyTitle("");
      setCursorLabelName("pl", 0);
      }

      function main() {
      return vSMA3_of_HLC3.getValue(MAStudy.MA);
      }

      Comment


      • #4
        How would you plot this as a DOT ? Any idea.

        Thank you.

        fankc

        Comment


        • #5
          Hi,

          How to you go about plotting a DOT rather a line as shown in the attached ?

          Any help would be appreciate.

          Thank you.

          fankc
          Attached Files

          Comment


          • #6
            Here's a couple different ways to show this. You can delete the "//" to reactivate and see what each one does for the different line or shape styles. just try one at a time.
            hope it helps.
            Kirk

            PHP Code:
            var vSMA3_of_HLC3 = new MAStudy(30"HLC/3"MAStudy.SIMPLE);
            function 
            preMain() {
            setPriceStudy(true);
            setStudyTitle("PLDot");
            setCursorLabelName("pl"0);
            //setDefaultBarStyle(PS_DOT, 0);
            //setPlotType(PLOTTYPE_DOT, 0);
            //setDefaultBarThickness(2,0);
            }



            function 
            main() {

            //drawShapeRelative(0,vSMA3_of_HLC3.getValue(MAStudy.MA),Shape.CIRCLE,null, Color.blue, Shape.ONTOP);
            drawTextRelative(0,vSMA3_of_HLC3.getValue(MAStudy.MA),"l",Color.blue,nullText.BOTTOM|Text.CENTER|Text.BOLD,"Wingdings",8);//lowercase "l" small circle



            return;// vSMA3_of_HLC3.getValue(MAStudy.MA);

            Comment


            • #7
              Hi zeller4,

              Thank you for your code. Really appreciate it.

              The code is what i am looking for.

              Once again, thank you for your generous help.

              fankc

              Comment


              • #8
                Is it possible to shift (or print) the dot to the right one bar ?

                Any help would be appreciated.

                Thank you.

                Comment


                • #9
                  I have already figure that out.

                  Thank.

                  Comment

                  Working...
                  X