Announcement

Collapse
No announcement yet.

Moving Avg Alert/Email

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

  • Moving Avg Alert/Email

    I am looking to do what should be a rather simple thing but am having trouble getting correct alerts.

    All I want is an EFS that will alert/email me ONLY when the close of a bar is > or < say a 20 period simple moving avg. I tried to program this with the wizard but it alerts me on every single bar. I only want an alert/email when the close is > sma20 and the reverse- an alert/email when close < sma20.

    Does an EFS of something as simple as this exist? I am trying to avoid receiving 10+ emails from alerts, which is what it is doing now. From this code I suppose I can cut/paste other criteria for other alerts using the same once per occurance code.

    Any ideas?

    Thanx

  • #2
    strongas
    The image enclosed below shows you how you would set up the conditions to trigger an alert when the bar closes above the average.
    Alex

    Comment


    • #3
      Bingo

      This code works perfectly. Now I can see, from this code, why I have never been able to trigger email alerts correctly. This code makes much more sense when I look at it.

      Thanx

      Comment


      • #4
        strongas
        You are most welcome
        Alex

        Comment

        Working...
        X