I want to draw a line of the ESmini in the NASmini chart - but the following formula does not work. Does a/b know why, or what I have to change??
function preMain() {
setPriceStudy(false);
}
var OVol = 0;
function main() {
if ( close(0,1,"ES M5") > close(-1,1,"ES M5")) OVol += volume(0,1,"ES M5");
else if ( close(0,1,"ES M5") < close(-1,1,"ES M5") ) OVol -= volume(0,1,"ES M5");
return OVol;
}
regards
Roger
function preMain() {
setPriceStudy(false);
}
var OVol = 0;
function main() {
if ( close(0,1,"ES M5") > close(-1,1,"ES M5")) OVol += volume(0,1,"ES M5");
else if ( close(0,1,"ES M5") < close(-1,1,"ES M5") ) OVol -= volume(0,1,"ES M5");
return OVol;
}
regards
Roger
Comment