Hello
I try to have a simple obv, with a daily restart ...
so I have create a variable
vdobv= "yesterday last obv"
and I return obv-vdobv but it doesn't work .
Coulld you tell where is the mistake..
Thank you
I try to have a simple obv, with a daily restart ...
so I have create a variable
vdobv= "yesterday last obv"
and I return obv-vdobv but it doesn't work .
Coulld you tell where is the mistake..
Thank you
PHP Code:
function preMain() {
setPriceStudy(false);
setStudyTitle("OBV");
setCursorLabelName("OBV", 0);
setDefaultBarFgColor(Color.blue, 0);
setPlotType(PLOTTYPE_LINE,0);
setDefaultBarThickness(1,0);
}
var vobv = null;
var vdobv = null;
function main() {
vdobv = obv(-1,close,inv("d"));
vobv = obv() - vdobv;
return vobv;
}
Comment