Can someone show me in this code how to use the rounding function(s) so this IBM plot has no decimal plotting on a chart. ie. 118 instead of 118.45. I'm trying to figure out how the rounding functions work in code.
function premain() {
setPriceStudy(true);
setStudyTitle("vDecimal");
setCurserLabelName("DEC");
setDefaultBarFgColor(Color.blue,0);
setDefaultBarThickness(2);
setPlotType(PLOTTYPE_LINE,0);
}
var mySym = null;
//var myDecimal = null;
function main() {
var mySym = close(0,sym("IBM"));
return(mySym);
}
function premain() {
setPriceStudy(true);
setStudyTitle("vDecimal");
setCurserLabelName("DEC");
setDefaultBarFgColor(Color.blue,0);
setDefaultBarThickness(2);
setPlotType(PLOTTYPE_LINE,0);
}
var mySym = null;
//var myDecimal = null;
function main() {
var mySym = close(0,sym("IBM"));
return(mySym);
}
Comment