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.
Announcement
Collapse
No announcement yet.
getValue("Volume", 0, -1) and volume(0)
Collapse
X
-
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 x = getValue("Volume",0,-1);
var y = volume(0);
return new Array (x[0],y);
}
Comment