Announcement

Collapse
No announcement yet.

Repeat, please help with alert on this EFS

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

  • Repeat, please help with alert on this EFS

    This formula draws a point every time positive DMI makes a higher high than its most recent high. The formula will plot a point for each subsequent bar that is higher than that most recent high. I would like to get an alert to come up only for the 1st bar that makes a higher high. I've been trying to use the wizard, mix & match with other formulas, but I'm still not very strong at EFS. I've spent hours on this so far & cant get an alert to come up at all. Any help would be greatly appreciated.

    Ian
    Attached Files

  • #2
    This should help draw the green dot only the first time it appears
    Attached Files

    Comment


    • #3
      Thanks for all your previous help David. That works out well with the drawShapeRelative function, but do you have any idea why I cannot get the Alert function to work? Here is the efs.
      Attached Files

      Comment


      • #4
        Try

        Alert.playSound("Ding.wav");

        Comment


        • #5
          Yea, this doesn't work either. This sh!t sure is frustrating

          Comment


          • #6
            When you right clcik on the chart and Select Remove, All Studies do you get a ding before the Yes No box comes up? If not, the sound card is not communicating with eSignal correctly.

            Comment


            • #7
              I have other formulas that work fine with the alerts. It has something to do with the way I'm phrasing or combining functions in the function onActions I'm guessing.

              Comment


              • #8
                You arent resetting vLastAlert from 1. You need to do this in order for the alarm to test TRUE.

                function onAction1() {
                drawShapeRelative(-1, high(), Shape.CIRCLE, "", Color.red, Shape.LEFT);
                lastHighADX=vADXDM.getValue(ADXDMStudy.PDI, -1);
                signal = 0;
                vLastAlert=0;
                }

                Should do that

                Comment

                Working...