Announcement

Collapse
No announcement yet.

Delaying alerts

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

  • Delaying alerts

    Hello,

    I was wondering if there is a way to delay an alert from been given. I want to set the alert to go off let's say, 20 points after the price crosses the indicator (KAMA is the one I currently use) thus avoiding the small moves and concentrating on the mayor ones.

    Any help will be greatly appreciated

    Please find KAMA attached.
    Attached Files

  • #2
    very simple fix..

    Here you go..

    B
    Attached Files
    Brad Matheny
    eSignal Solution Provider since 2000

    Comment


    • #3
      B,

      Thanks for your help, but now the alerts are not showing on the chart and I can't see what's wrong. Any idea?


      Alejandro
      Attached Files

      Comment


      • #4
        here you go..

        Not knowing what you wanted as an OFFSET for the alerts, I set it to 20.0. It is part of the default parameters for this study. Use EDIT STUDIES to change it, or change it in the code.

        I changed it to 0.02 so you can see it working. I also re-wrote the alert function. Now, your arrows will appear when the cross of the EMA value happens and your alerts will be delayed till price move past the EMA by 0.02 (or whatever you set).

        Here you go.

        B
        Attached Files
        Brad Matheny
        eSignal Solution Provider since 2000

        Comment


        • #5
          One More change..

          This new code includes additional control logic for the alert delays. I found a bug in my last code (sometimes they happen) and repaired it for you.

          B
          Attached Files
          Brad Matheny
          eSignal Solution Provider since 2000

          Comment


          • #6
            It looks beautiful!

            Thanks a million B

            Alejandro

            Comment


            • #7
              This is a very interesting study, but is there a way to sound the alert and place arrow at point of cross, instead of at bar close??

              TIA

              Racer
              Attached Files

              Comment


              • #8
                Brad,

                I'm sorry to bother you about this again, but I'm still having the same problem with the alerts, the arrows are shown on the chart, but for some reason I don't get the email alert when the price reaches the offset point. I know this is not a problem of me setting up the email alerts withing Esignal because this type of alert works well with other studies. Any ideas?

                sc1317,

                Did you try the study and the email alert? If you did, is it working properly for you? About sounding the alert and placing arrows at point of cross, instead of at bar close, I think it's a good idea, I don't know how to make it happen withing the EFS thought.

                Thanks,
                Alejandro

                Comment


                • #9
                  abarb;

                  Did not try the email, edited it out, but the alert does sound at crossover and the popup works, but at the close of the bar and not at time of cross..

                  Would like to see that, instead of the placement at bar close..

                  Racer..

                  Comment


                  • #10
                    KAMA RT

                    Have not tried this code (just helping out). I suggest making sure you email alerts are set to on and letting it go. Remember, the alerts are delayed - so the email is delayed too...

                    In the code, the email alert is right after the sound..

                    PHP Code:
                                if ((vLastAlert == 1) && ((close(0)>(aAMA[0]+AlertOffset))) && (AlertActive))  {
                                  
                    Alert.playSound("ding.wav");
                                  
                    Alert.email(close(),"buy GBPUSD");
                                  
                    AlertActive false;
                                } 
                    so it should be working..

                    This is the new RT KAMA. I'll try to watch it tomorrow - but no guarantees that I'll be able to follow it much.

                    B
                    Attached Files
                    Brad Matheny
                    eSignal Solution Provider since 2000

                    Comment


                    • #11
                      B,

                      I'll check my email alert settings tomorrow, it's already past midnight at this end, eventually I'm sure it'll work.

                      Thanks a million for your help!!!!!!!!!

                      Alejandro

                      Comment

                      Working...
                      X