Announcement

Collapse
No announcement yet.

momentum dots

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

  • momentum dots

    Good Morning Forum!!

    I wa s looking to this page : http://electroniclocal.blogspot.com/


    he is useing mom dots in the chart.

    the formular is here : http://electroniclocal.blogspot.com/...-settings.html


    MomDots(HI.2+LO.2+CL.2)/3 + (HI.4+LO.4+CL.4)/3 + (HI.3+LO.3+CL.3)/3)/3;


    on the picture you see the little dots near the candles.

    picture: http://www.charthub.com/images/2010/01/19/25_DT1.png


    so is there enybody in the forum who can do this formular for efs?
    that would be very very nice.


    thanks

  • #2
    Re: momentum dots

    vienna
    You don't actually need an efs. Just use a Basic Studies simple moving average of the (H+L+C)/3 set to a length of 3 periods and offset forward by 2 periods
    Alex


    Originally posted by vienna
    Good Morning Forum!!

    I wa s looking to this page : http://electroniclocal.blogspot.com/


    he is useing mom dots in the chart.

    the formular is here : http://electroniclocal.blogspot.com/...-settings.html


    MomDots(HI.2+LO.2+CL.2)/3 + (HI.4+LO.4+CL.4)/3 + (HI.3+LO.3+CL.3)/3)/3;


    on the picture you see the little dots near the candles.

    picture: http://www.charthub.com/images/2010/01/19/25_DT1.png


    so is there enybody in the forum who can do this formular for efs?
    that would be very very nice.


    thanks

    Comment


    • #3
      Re: momentum dots

      Originally posted by vienna
      MomDots(HI.2+LO.2+CL.2)/3 + (HI.4+LO.4+CL.4)/3 + (HI.3+LO.3+CL.3)/3)/3;
      Roughly speaking, it's this:

      PHP Code:
      /*
          momdots--rough draft
          
          Feb 08, 2010 codehead
      */

      function preMain() {
          
      setPriceStudy(true);
          
      setComputeOnClose();
          
      setStudyTitle("momdots");
      }

      function 
      main() {
          
      momdot = (high(-2) + low(-2) + close(-2)
              + 
      high(-3) + low(-3) + close(-3)
              + 
      high(-4) + low(-4) + close(-4)) / 9;

          
      drawShapeRelative(0momdotShape.CIRCLEnullColor.blueShape.ONTOP);

      I say "roughly" because I'm not sure of some details. For instance, the code would be a little different depending on whether it's being updated tick-by-tick on the current bar, and whether it gets plotted on the last-completed bar (in which case you'd want to replace the "0" with "-1" on the last line). Also, I'm assuming that ".2" is two bars ago, but it could the previous bar.

      Comment


      • #4
        mom dots

        Thats perfect!

        its exactly what i want and with 1 in the last row its real time.

        THANK YOU VERY MUCH !!!!!!

        Comment


        • #5
          thanks ALEX

          yes it works also with forward 3, gives the same result.


          tks

          Comment


          • #6
            Re: mom dots

            Originally posted by vienna
            Thats perfect!

            its exactly what i want and with 1 in the last row its real time.

            THANK YOU VERY MUCH !!!!!!
            Great--you're welcome!

            It occurred to me that you might want to check the calculated value with the cursor, so I modified it to show that dot as a plot instead of as a drawn object. This way, that value will appear in the cursor data window:

            PHP Code:
            /*
                momdots
                
                Feb 08, 2010 codehead
            */

            function preMain() {
                
            setPriceStudy(true);
                
            setStudyTitle("momdots");
                
            setCursorLabelName("momdot"0);
                
            setComputeOnClose();
                
            setPlotType(PLOTTYPE_CIRCLE0);
                
            setDefaultBarThickness(30);
            }

            function 
            main() {
                
            momdot = (high(-2) + low(-2) + close(-2)
                    + 
            high(-3) + low(-3) + close(-3)
                    + 
            high(-4) + low(-4) + close(-4)) / 9;

                return 
            momdot;

            You can change the setDefaultBarThickness value ("3") for a different dot size.

            BTW, I tried "hlc3()" (e.g., "(hlc3(-2) + hlc3(-3) + hlc3(-4))/3), but got nothing back--anyone know why?

            Comment

            Working...
            X