function preMain() {
setPriceStudy(false);
setStudyTitle("1z");
setCursorLabelName("v", 0);
setDefaultBarStyle(PS_SOLID, 0);
setDefaultBarFgColor(Color.red, 0);
setDefaultBarThickness(1, 0);
setPlotType(PLOTTYPE_HISTOGRAM, 0);
setPlotType(PLOTTYPE_LINE, 1);
}
function main(){
setBarFgColor(Color.lime,0);
setBarFgColor(Color.lime,1);
if(close()<close(-1))
setBarFgColor(Color.red,1);
debugPrintln(volume());
if (volume() > 3) return new Array( volume(), volume());
return;
}
setPriceStudy(false);
setStudyTitle("1z");
setCursorLabelName("v", 0);
setDefaultBarStyle(PS_SOLID, 0);
setDefaultBarFgColor(Color.red, 0);
setDefaultBarThickness(1, 0);
setPlotType(PLOTTYPE_HISTOGRAM, 0);
setPlotType(PLOTTYPE_LINE, 1);
}
function main(){
setBarFgColor(Color.lime,0);
setBarFgColor(Color.lime,1);
if(close()<close(-1))
setBarFgColor(Color.red,1);
debugPrintln(volume());
if (volume() > 3) return new Array( volume(), volume());
return;
}
Comment