isIntraday()

eSignal EFS 2

isIntraday()

Top  Previous  Next

 

isIntraday( [interval] )

 

Returns true if the interval passed is an intraday bar interval. If no interval is passed, the function uses the interval of the chart in which the script is running.

 

Parameters

 

interval

the interval to check

 

Usage

 

var bBail = false;

var bInit = false;

 

function main() {

 

       if ( bBail==true ) {

               return;

       }

 

       if ( bInit==false ) {

       

               if ( isIntraday()==true ) {

                       debugPrint( "Sorry. This script does not run in intraday charts.\n" );

                       bBail=true;

                       return;

               }

 

               bInit = true;

 

       }

               

       ...

       ...

 

}