Announcement

Collapse
No announcement yet.

Keep getting 0.# in efs pane window on the following EFS study

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

  • Keep getting 0.# in efs pane window on the following EFS study

    Hi i keep getting the 0.# on the following EFS study when using any other time template other than RTH East Coast
    Attached Files

  • #2
    abbers
    I have just tried running it on a number of symbols and templates (including ones with European trading times) and the efs seems to work fine.
    I suspect the issue may be caused by something else. Can you provide as an example a symbol/interval/template you are using?
    Alex

    Comment


    • #3
      I'm using nq #f 24 hour data, on minutes chart is where the problem seems to be, it works ok with Tick data.

      Comment


      • #4
        on 1 min charts is where it seems to happen most often

        Comment


        • #5
          abbers
          I see it now. It seems to happen when there are a number of consecutive bars where the high equals the low.
          Alex

          Comment


          • #6
            abbers
            While still looking for a better solution here is a fix that should work.
            Add the following after var Price = (high() + low()) / 2; which is in line 28
            if(high()==low()&&high(-1)==low(-1)&&high(-2)==low(-2))
            return;

            This way if there are three or more bars where high=low the efs does not return a value.
            Alex

            Comment


            • #7
              Thanks that seems to have done the trick.

              Comment


              • #8
                abbers
                Here is what I think is a better solution.
                Delete the lines from the prior fix and insert the following before the line Value1 = .33 * 2 * ((Price - MinL) / (MaxH - MinL) - .5) + .67 * Value1_1;
                if(MaxH==MinL)
                return;

                Alex

                Comment


                • #9
                  Thanks that works well too.

                  Thankyou for ur help.

                  Comment

                  Working...
                  X