Announcement

Collapse
No announcement yet.

Universal Oscillator by John Ehlers

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

  • Universal Oscillator by John Ehlers

    I been using the Universal Oscillator basically since it first came out and have left the default bandedge setting at 20. However I would like to be adjust the bandedge to 50, as was demonstrated in S&C. Unfortunately, when i do this, all I get is a bunch of up and down zigzags, which almost looks like a 2 period rsi or something. Any ideas why this is happening?

  • #2
    assjls
    Replace line 78 which is currently as follows
    b1 = 2*a1*Math.cos(1.414*180/BandEdge);
    with the following
    b1 = 2*a1*Math.cos((1.414*180/BandEdge)*Math.PI/180);
    That should correct the issue
    Alex


    Originally posted by assjls View Post
    I been using the Universal Oscillator basically since it first came out and have left the default bandedge setting at 20. However I would like to be adjust the bandedge to 50, as was demonstrated in S&C. Unfortunately, when i do this, all I get is a bunch of up and down zigzags, which almost looks like a 2 period rsi or something. Any ideas why this is happening?

    Comment


    • #3
      Originally posted by ACM View Post
      assjls
      Replace line 78 which is currently as follows
      b1 = 2*a1*Math.cos(1.414*180/BandEdge);
      with the following
      b1 = 2*a1*Math.cos((1.414*180/BandEdge)*Math.PI/180);
      That should correct the issue
      Alex
      Thx! Works like a charm.

      Comment


      • #4
        assjls
        You are welcome
        Alex


        Originally posted by assjls View Post
        Thx! Works like a charm.

        Comment

        Working...
        X