Announcement

Collapse
No announcement yet.

Having trouble with a formula I wrote

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

  • Having trouble with a formula I wrote

    Trying to write a EFS for CCI audio alert and bar alert for +200 and -200 getting an error at line 39. How do I tell it to look for +200 MK

  • #2
    Mark
    If you post the script (or attach the efs) someone may be able to help.
    Alex

    Comment


    • #3
      Alex
      You helped me before, so I'll ask another question(g)

      Investor's Business Daily says once a stock falls -35% from it's
      high, that stock is DEAD.

      Question?
      What is the coding to find the high of the last 52 bars ?

      If there a
      for I=1 to 52
      ......
      next I

      type of statement?


      ......or......
      Is there a ready made statement like "addBand" ????

      Thanks again for your past help.
      Larry Dudash
      HAL at
      http://share.esignal.com/groupconten...r=&groupid=549

      Comment


      • #4
        you can right click on a chart, basic studies, donchian channel and set it to 52to find the 52 week high.

        Comment


        • #5
          David

          That is very simple way.

          I'll give that a try.

          Thanks
          Larry Dudash
          HAL at
          http://share.esignal.com/groupconten...r=&groupid=549

          Comment


          • #6
            If you want a line at 35% off the high, speak up and we'll cobble something together

            Comment


            • #7
              var vDonchian = new DonchianStudy(52, 0);

              function preMain(){
              setPriceStudy(true);
              }

              function main(){
              return vDonchian.getValue(DonchianStudy.UPPER)*0.35;
              }

              edited

              Comment


              • #8
                Larry
                In case you want to plot the line at 35% from the 52 period high instead of at 35% of the 52 period high (which is what David's formula returns) here is the same script with a small modification
                Alex

                PHP Code:
                var vDonchian = new DonchianStudy(520);

                function 
                preMain(){
                setPriceStudy(true);
                }

                function 
                main(){
                return 
                vDonchian.getValue(DonchianStudy.UPPER)-(vDonchian.getValue(DonchianStudy.UPPER)*0.35); 

                Comment


                • #9
                  To All
                  Thanks for your help !
                  I am now able to plot -10%, -20% -30% and -40% lines
                  off the peak.
                  Larry Dudash
                  HAL at
                  http://share.esignal.com/groupconten...r=&groupid=549

                  Comment


                  • #10
                    Why is this important? Not the Syntax, I mean the reading.

                    Comment


                    • #11
                      Hey Guys,

                      I just want to say thanks, this helps me out too.

                      Cheers

                      Carlton

                      Comment

                      Working...
                      X