Announcement

Collapse
No announcement yet.

EMA Price Alert

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

  • EMA Price Alert

    Hello,

    I wonder if someone could direct me to where I may find an script that will alert me when a price hits an MA. I have beeb searching this forum for such an alert as I have seen them while searching in past but I can't seem to find any at the moment.

    Basically, I would like to be alerted when candle hits the 50 ema.

    Cheers

    Carlton

  • #2
    Carlton
    The attached should do what you asked. It will sound one ding only (in real time) when the high of a bar touches the moving average and resets every time the high goes back under it.
    Using Edit Studies set the parameters for the MA to the desired ones.
    Alex
    Attached Files

    Comment


    • #3
      Alexis,

      Thanks for the script. However, is it possible to have efs alert when the bar hits the ema from above. Most of my trades will be placed when the price bar is above the ema and I would like to be alerted when it crosses the ema from above.

      Sorry to be a nuisance.

      Thanks

      Carlton

      Comment


      • #4
        Carlton
        Just reverse the logic in the script ie. if(low(-1)>vMA.getValue(MASTUDY.MA,-1)&&low()<vMA.getValue(MASTUDY.MA))
        Alex

        Comment


        • #5
          Alexis,

          Thats great.

          Thanks mate.

          Carlton

          Comment

          Working...
          X