I'm trying to test if a chart is a Volume, Time, or Tick based chart. I've found the IsInterval() function. Is this the right function to use to determine the type of chart? The example shows differentiating between different intervals on a Time based chart.
PHP Code:
var sInterval = getInterval();
if (sInterval == "D" ) {
debugPrint( "This is a Daily chart.\n");
} else if (sInterval == "1") {
debugPrint("This is a one-minute chart\n");
}
Comment