Announcement

Collapse
No announcement yet.

getValue("Volume", 0, -1) and volume(0)

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

  • getValue("Volume", 0, -1) and volume(0)

    getValue("Volume", 0, -1) and volume(0) don't return the correct volume of the current bar. Right now, it always returns the number of 20065. I am running the two APIs on "QM Q5,D" and "QM #F,D". The value returned by the basic study "volume" in cursor window is also wrong.
    Last edited by clearpicks; 06-30-2005, 08:25 AM.

  • #2
    clearpicks
    As far as I can see the enclosed script is returning the correct volume at the current bar for both variables (see enclosed image with Volume study used for comparison)
    With regards to the Volume of QM (and of futures in general) see this article in the eSignal KnowledgeBase
    Alex

    PHP Code:
    function main(){

        var 
    getValue("Volume",0,-1);
        var 
    volume(0);
        
        return new Array (
    x[0],y);

    Comment

    Working...
    X