Place it on the $VOLD symbol...
Why does this not update on every bar...
#######################
function preMain() {
setPriceStudy(true);
setShowTitleParameters( false );
setShowCursorLabel(false);
setStudyTitle("VoldCode");
}
function main() {
if(getCurrentBarIndex() != 0) {
drawLineRelative(30 * -1,0, 2, 0, PS_SOLID,1, Color.black, "Zero");
}
if((getHour()*100)+getMinute() >= 930 && (getHour()*100)+getMinute() < 935) onAction1()
return null;
}
function postMain() {
}
function onAction1() {
setBarBgColor(Color.RGB(255,255,183));
}
Why does this not update on every bar...
#######################
function preMain() {
setPriceStudy(true);
setShowTitleParameters( false );
setShowCursorLabel(false);
setStudyTitle("VoldCode");
}
function main() {
if(getCurrentBarIndex() != 0) {
drawLineRelative(30 * -1,0, 2, 0, PS_SOLID,1, Color.black, "Zero");
}
if((getHour()*100)+getMinute() >= 930 && (getHour()*100)+getMinute() < 935) onAction1()
return null;
}
function postMain() {
}
function onAction1() {
setBarBgColor(Color.RGB(255,255,183));
}
Comment