Announcement

Collapse
No announcement yet.

OBV with expanding Volume

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

  • OBV with expanding Volume

    I am trying to modify the OBV formula to have it include expanding volume. In line 40, I get a Syntax Error: MISSING ; before statement. Help Please! What am I doing wrong?

    I would also like the square root of volume. sqr(v) is what is used in another program. Can eSignal do this as well and how?

    Thanks
    Duke
    Attached Files

  • #2
    Duke
    Replace the relevant section with the following
    Alex

    PHP Code:
    if(dClose dPrevClose && dVolume dPrevVolume) {
            
    dSum += dVolume;
        } else if(
    dClose dPrevClose && dVolume dPrevVolume) {
            
    dSum -= dVolume;
        } 

    Comment


    • #3
      Duke
      For the square root of Volume use Math.sqrt(volume())
      Alex

      Comment

      Working...
      X