Announcement

Collapse
No announcement yet.

Help With Previous High Script

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

  • Help With Previous High Script

    Hello everyone,

    I wonder if someone can help me with the attached built-in esignal script. The script highlights the previous days high and I would like it to alert me when todays price reaches yesterday's high.

    As always, you assistance is appreciated.

    Cheers

    Carlton
    Attached Files

  • #2
    Carlton
    The attached revision should do what you asked
    Alex
    Attached Files

    Comment


    • #3
      Alexis

      Thanks mate.

      Carlton

      Comment


      • #4
        Alexis,

        I tried out the script you rewrote for me. The audible alerts worked perfectly. I then added the following line:

        Alert.addToList(getSymbol(), "4th Down Bar", Color.black, Color.red);


        under the alert.playsound and everything went a little crazy. Basically, the alert window keeps on popping up literally every second. Can you tell me what I'm doing wrong?

        Cheers

        Carlton

        Comment


        • #5
          Alexis,

          The actual line I added beneath alert.playsound was:

          Alert.addToList(getSymbol(), "YESTERDAYS HIGH", Color.blue, Color.white);

          I was using the line below as an illustration.

          Thanks

          Carlton

          Comment


          • #6
            Carlton
            Try the attached revision
            Alex
            Attached Files

            Comment


            • #7
              Working fine.

              Cheers

              Carlton

              Comment


              • #8
                Hello,

                Alex had helped me re-write the attached script so as to alert me when the price reached the previous day's high. I wonder if someone could assist me to re-write the script so as to alert me when the price also falls below yesterdays high.

                Thanks

                Carlton

                P.S.

                I know I should be able to do this, as its just the reverse of what I already have but I can't get it to work.
                Attached Files

                Comment


                • #9
                  Carlton
                  To reverse the logic you need to use low() in place of high() and flip the <> operators.
                  Alex

                  Comment


                  • #10
                    Alex

                    Yeah, I finally figured it out.

                    Thanks anyway.

                    Cheers mate.

                    Carlton

                    Comment

                    Working...
                    X