Announcement

Collapse
No announcement yet.

isTick() and isRawTick() - very surprising results and poor doc in KB

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

  • isTick() and isRawTick() - very surprising results and poor doc in KB

    10.2.2139
    isTick() and isRawTick() exist:

    "isTick( [interval] ) Returns true if the interval passed is a tick interval."
    "isRawTick( [interval] ) Returns true if the interval passed is a tick interval."

    See they both have the same definition (both online and .chm), so they do the same thing? Well presumably not so

    PHP Code:
    Check isTick and isRawTick:  inv 50T   isTick(sInv) = falseisRawTick(sInv) = true
    Check isTick 
    and isRawTick:  inv T     isTick(sInv) = trueisRawTick(sInv) = true
    Check isTick 
    and isRawTick:  inv 100T  isTick(sInv) = falseisRawTick(sInv) = true
    Check isTick 
    and isRawTick:  inv 100V  isTick(sInv) = falseisRawTick(sInv) = true
    Check isTick 
    and isRawTick:  inv 1R    isTick(sInv) = falseisRawTick(sInv) = false
    Check isTick 
    and isRawTick:  inv 3P    isTick(sInv) = falseisRawTick(sInv) = false
    Check isTick 
    and isRawTick:  inv 10S   isTick(sInv) = falseisRawTick(sInv) = true
    Check isTick 
    and isRawTick:  inv 30    isTick(sInv) = falseisRawTick(sInv) = false
    Check isTick 
    and isRawTick:  inv D     isTick(sInv) = falseisRawTick(sInv) = false
    Check isTick 
    and isRawTick:  inv W     isTick(sInv) = falseisRawTick(sInv) = false
    Check isTick 
    and isRawTick:  inv M     isTick(sInv) = falseisRawTick(sInv) = false 

  • #2
    Re: isTick() and isRawTick() - very surprising results and poor doc in KB

    Hi Dave,

    FWIW, the behavior you are seeing is similar to what was seen in 2004 in this thread. Since then, the Range and Price bars have been added.

    In my opinion, the subject tests are limited in their usefulness. My recommendation is that if you test for the specific intervals.


    As for identifying so many things as bugs, I can't remember seeing many.


    Originally posted by Dave180
    10.2.2139
    isTick() and isRawTick() exist:

    "isTick( [interval] ) Returns true if the interval passed is a tick interval."
    "isRawTick( [interval] ) Returns true if the interval passed is a tick interval."

    See they both have the same definition (both online and .chm), so they do the same thing? Well presumably not so the definition is wrong at least.

    Comment


    • #3
      Thanks Steve, I was in fact already using my own "isTickLike()" having not been sufficiently taken by the docs to try the others, but something made me check it out this w/e.

      Comment

      Working...
      X