isDWM()
isDWM()
Returns true if the script is currently processing Daily, Weekly or Monthly bars (e.g., the script is being used in a Daily, Weekly or Monthly chart).
Example:
if ( isDWM() ) {
debugPrint("Using Daily, Weekly or Monthly data.\n");
return;
}