Announcement

Collapse
No announcement yet.

Adxr

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

  • Adxr

    Anyone write an efs for the adxr, the calculation seems fairly simple,

    ADXR=(ADX(today)+ADX(14 days ago))/2

  • #2
    ryanlangdon
    You can easily do that with the builtinADXDM.efs that is in the Builtin folder.
    Just above the return statement add the following line
    var vADXR = (vADX.getValue(ADXDMStudy.ADX) + vADX.getValue(ADXDMStudy.ADX,-14)) / 2;
    Then replace all of the return statement with return vADXR;
    Alex

    Comment

    Working...
    X