var xMA1 = null;
var xMA2 = null;
var xMA3 = null;
var xMA4 = null;
var ctz = null;
var bInit = false;
var MA1 = null;
var MA2 = null;
var MA3 = null;
var MA4 = null;
Alan
In your condition you should evaluate the value ie getMinute(0) rather than the series object ie getMinute() as the latter resolves the 0 to null with the result that the condition evaluates to false on the bars with 00 minutes
Once you make this change the script will return the proper values also on those bars
Alex
Originally posted by Alan2004 var xMA1 = null;
var xMA2 = null;
var xMA3 = null;
var xMA4 = null;
var ctz = null;
var bInit = false;
var MA1 = null;
var MA2 = null;
var MA3 = null;
var MA4 = null;
Comment