Announcement

Collapse
No announcement yet.

RSI Alerts

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

  • RSI Alerts

    I pasted together some code from stuff I found here to try and get the RSI to alert me if:
    1 - the RSI is above 70 and turns down; and/or
    2 - the RSI is below 30 and turns up.
    I only want it to signal once per bar but it's signalling continuously.

    Can someone see what I need to change to make it signal only once per bar?

    Thanks for any help
    Attached Files

  • #2
    Re: RSI Alerts

    Dave
    In lines 87, 92 and 98 you are using an incorrect operator ie the comparison operator == instead of the assignement operator =
    For detailed information on JavaScript operators see this article in the Core JavaScript Guide which is provided in the EFS KnowledgeBase
    Se also the example posted in this thread showing how to trigger alerts once only per bar
    Alex


    Originally posted by luna2008
    I pasted together some code from stuff I found here to try and get the RSI to alert me if:
    1 - the RSI is above 70 and turns down; and/or
    2 - the RSI is below 30 and turns up.
    I only want it to signal once per bar but it's signalling continuously.

    Can someone see what I need to change to make it signal only once per bar?

    Thanks for any help

    Comment


    • #3
      Many thanks Alexis.

      Comment


      • #4
        Dave
        My pleasure
        Alex


        Originally posted by luna2008
        Many thanks Alexis.

        Comment

        Working...
        X