Announcement

Collapse
No announcement yet.

Refering to past data

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

  • Refering to past data

    In the efs file "AccDist.efs" I am trying to subtract yesterdays "dSum" value from todays. I have written code on MetaStock for years, but I am new to Java Script. Can someone please help me with this problem and let me know the code that would achive this.

    Thanks, Steven

  • #2
    Steven
    With the specific formula you are referring to you would write dSum - dLastSum
    Having said that you may find it easier to use the customAccDist.efs formula which is in the EFS2 Custom folder and where the values at the prior bars can be retrieved through the .getValue() method which is similar to using Ref() in Metastock ie xAccDist.getValue(0)-xAccDist.getValue(-1)
    Alex

    Comment

    Working...
    X