Announcement

Collapse
No announcement yet.

Can Anyone Help

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

  • Can Anyone Help

    I have writeen the following simple EFS to show me high and lows depending on RSI levels.

    How do I get the diplay to displace, ie I dont want to take the the current bars value until closed ??



    Thanks




    Jamie
    Attached Files

  • #2
    Jamie
    Replace Plot1 with Plot1.getValue(-1) in your return statement
    This way you will be returning the prior bar's value thereby displacing the plot forward
    Alex

    Comment


    • #3
      Thanks Alexis


      I have tried to do same with this EFS which is based on same stops but does not work?


      Jamie
      Attached Files

      Comment


      • #4
        Jamie
        That is due to how you have set up the conditions that define Plot1. In some case if neither condition is true Plot1 is null which will in turn create an error when you try to retrieve its value with the getValue() method.
        You will need to either check for a null value of Plot1 or add an "else" condition to define Plot1 when neither of the first two conditions is met
        Alex

        Comment


        • #5
          Thanks very much Alexis


          Jamie

          Comment

          Working...
          X