Hello,
I need help with a basic script. All I want to do is display the 5 minute TICK value in the middle of the screen. I don't really want to have a study created but just draw it on the graph so I can always see it. I also want it to continously update every 5 minutes. Here is what I have so far....can someone tell me what I am doing wrong?
function main() {
var nTickHigh_1 = high( -1, sym("$TICK,5"));
var nTickLow_1 = low( -1, sym("$TICK,5"));
var nTickClose_1 = close( -1, sym("$TICK,5"));
drawTextAbsolute(0,55.0,nTickClose_1,Color.blue,nu ll,Text.ONTOP
return null;
I need help with a basic script. All I want to do is display the 5 minute TICK value in the middle of the screen. I don't really want to have a study created but just draw it on the graph so I can always see it. I also want it to continously update every 5 minutes. Here is what I have so far....can someone tell me what I am doing wrong?
function main() {
var nTickHigh_1 = high( -1, sym("$TICK,5"));
var nTickLow_1 = low( -1, sym("$TICK,5"));
var nTickClose_1 = close( -1, sym("$TICK,5"));
drawTextAbsolute(0,55.0,nTickClose_1,Color.blue,nu ll,Text.ONTOP
return null;
Comment