hey guys,
I am trying to code a little non-price pane indicator using just dots in a flat line. But I can't seem to get it to work - only the last series appears. I thought I was controlling the "y-value" but there is no scale appearing...?
Also the "shapes" are appearing like little blobs - can I control their size (=thickness?)
Any help greatly appreciated -
here is the sample code:
var Symbol = null;
var Interval = null;
function main() {
if(Symbol == null) Symbol = getSymbol();
if(Interval == null) Interval = getInterval();
var vSymbol = Symbol+","+Interval;
if (rsi(14,close(sym(vSymbol)))>=50){
drawShapeRelative( 0, 1, Shape.CIRCLE, null, Color.lime, Shape.TOP);
}
else drawShapeRelative( 0, 1, Shape.CIRCLE, null, Color.red, Shape.TOP);
if (rsi(34,close(sym(vSymbol)))>=60){
drawShapeRelative( 0, 2, Shape.CIRCLE, null, Color.lime, Shape.TOP);
}
else drawShapeRelative( 0, 2, Shape.CIRCLE, null, Color.red, Shape.TOP);
}
I am trying to code a little non-price pane indicator using just dots in a flat line. But I can't seem to get it to work - only the last series appears. I thought I was controlling the "y-value" but there is no scale appearing...?
Also the "shapes" are appearing like little blobs - can I control their size (=thickness?)
Any help greatly appreciated -
here is the sample code:
var Symbol = null;
var Interval = null;
function main() {
if(Symbol == null) Symbol = getSymbol();
if(Interval == null) Interval = getInterval();
var vSymbol = Symbol+","+Interval;
if (rsi(14,close(sym(vSymbol)))>=50){
drawShapeRelative( 0, 1, Shape.CIRCLE, null, Color.lime, Shape.TOP);
}
else drawShapeRelative( 0, 1, Shape.CIRCLE, null, Color.red, Shape.TOP);
if (rsi(34,close(sym(vSymbol)))>=60){
drawShapeRelative( 0, 2, Shape.CIRCLE, null, Color.lime, Shape.TOP);
}
else drawShapeRelative( 0, 2, Shape.CIRCLE, null, Color.red, Shape.TOP);
}
Comment