Hello,
I am displaying the TICK and TRIN values in the cursor window. It works fine for all time intervals except for 5 minutes. When I change to 5 minutes, it causes and error.
What am I doing wrong?
function preMain(){
setPriceStudy(true);
setCursorLabelName("TICK",0);
setCursorLabelName("TRIN",1);
}
function main() {
var nTickClose_1 = close( -1, sym("$TICK,5"));
var nTrinClose_1 = close( -1,sym("$TRIN,5"));
return new Array(nTickClose_1.toFixed(2),nTrinClose_1.toFixed (2));
I am displaying the TICK and TRIN values in the cursor window. It works fine for all time intervals except for 5 minutes. When I change to 5 minutes, it causes and error.
What am I doing wrong?
function preMain(){
setPriceStudy(true);
setCursorLabelName("TICK",0);
setCursorLabelName("TRIN",1);
}
function main() {
var nTickClose_1 = close( -1, sym("$TICK,5"));
var nTrinClose_1 = close( -1,sym("$TRIN,5"));
return new Array(nTickClose_1.toFixed(2),nTrinClose_1.toFixed (2));
Comment