Trying to work out how to put coloured shapes on the chart at the top that do not move and that you can change its colour of.
opposite the chart symbol label.
opposite the chart symbol label.
function preMain(){
setPriceStudy(true);
setShowCursorLabel(false);
var fp1 = new FunctionParameter("Color1",FunctionParameter.COLOR);
fp1.setDefault(Color.yellow);
var fp2 = new FunctionParameter("Width1",FunctionParameter.NUMBER);
fp2.setDefault(200);
}
function main(Color1,Width1){
drawTextPixel(0, 0, " ", null, Color1, null, null, 10, "test", Width1, 15);
return;
}
Comment