Announcement

Collapse
No announcement yet.

Restricting the display of an indicator based on the interval

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Restricting the display of an indicator based on the interval

    Hello,

    I'd like to not display an indicator if the interval is say less than 60 mins.

    Is there a way to test the interval size for intra day intervals?

    Thank you
    Mark

  • #2
    Mark
    Add a conditional statement that checks if the interval is an intraday interval and it is less than the specified value in which case it returns null
    Alex

    PHP Code:
    function main(){
        if(
    isIntraday() && getInterval()< 60) return;

        
    //rest of your code 

    Originally posted by markdman
    Hello,

    I'd like to not display an indicator if the interval is say less than 60 mins.

    Is there a way to test the interval size for intra day intervals?

    Thank you
    Mark

    Comment


    • #3
      Thanks Alex - it was a simple solution

      Cheers
      Mark

      Comment

      Working...
      X