Announcement

Collapse
No announcement yet.

problem with prices in t3avg.efs

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

  • problem with prices in t3avg.efs

    I am trying to use the Kalman t3 filter with prices other than open, high, low and close - such as hl2, hlc3 and ohlc4 - when i put these values into the parameter menu the line dissapears.

    Any suggestions as to the solution.

    Paul
    Attached Files

  • #2
    Paul
    Replace if (Price == null) Price = "Close"; with if (Price == null) Price = close();
    Then replace var vPrice = getValue(Price, 0); with var vPrice = eval(Price);
    In Edit Studies you will then need to insert hl2() or hlc3(), etc
    That should fix the problem
    Alex

    Comment


    • #3
      Thanks Alex,

      implemented the changes and it works great.

      Paul.

      Comment


      • #4
        Paul
        You are most welcome.
        FYI that version of the T3 will not update correctly in real time (if you reload the efs after it has been running for a while you will see the plot change). Attached is the corrected script (comments are included in the script)
        Also you may want to try the T3 that is included in the amStudies function library (see this post for more information).
        Alex
        Attached Files

        Comment

        Working...
        X