Hi again,
Chart set up: 135t ES Z3
Trying to do: Draw a dot at the high (+.25) of a bar when $ticki>=22
This is the code I wrote:
function preMain() {
setStudyTitle("tickidots");
setPriceStudy(true);
}
var n=1
function main() {
//get $ticki value
var thigh = high(0,"$ticki");
//draw shape
if (thigh >= 22) {
drawShapeRelative(0,high(0)+.25,Shape.CIRCLE,null, Color.lime,Shape.ONTOP,"high"+n);
n=n+1;
}
return;
}
I get "Loading Data" and nothing else on the chart.
Any suggestions?
Thanks
Daniel Parker
Chart set up: 135t ES Z3
Trying to do: Draw a dot at the high (+.25) of a bar when $ticki>=22
This is the code I wrote:
function preMain() {
setStudyTitle("tickidots");
setPriceStudy(true);
}
var n=1
function main() {
//get $ticki value
var thigh = high(0,"$ticki");
//draw shape
if (thigh >= 22) {
drawShapeRelative(0,high(0)+.25,Shape.CIRCLE,null, Color.lime,Shape.ONTOP,"high"+n);
n=n+1;
}
return;
}
I get "Loading Data" and nothing else on the chart.
Any suggestions?
Thanks
Daniel Parker
Comment