Announcement

Collapse
No announcement yet.

How to turn efs code on at certain time

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

  • How to turn efs code on at certain time

    The market opens at 9;30am and my code starts at that point, off the open bar. Alerts start to trigger at this point, but I do not want them to trigger until 9:45. How do I write into my code for it not to fire an alert until 9:45 am.

  • #2
    Re: How to turn efs code on at certain time

    sjsr
    You can do that by enclosing your alert command in a condition that checks if the bar time is equal or greater than a specified time eg
    if((hour(0)*100)+minute(0)>=945) { Alert.playSound(...); }
    For the description and syntax of the hour() and minute() functions used in the example you may want to refer to the Function Reference folder in the EFS KnowledgeBase
    Alex


    Originally posted by sjsr
    The market opens at 9;30am and my code starts at that point, off the open bar. Alerts start to trigger at this point, but I do not want them to trigger until 9:45. How do I write into my code for it not to fire an alert until 9:45 am.

    Comment


    • #3
      Thank you for the help

      Works great, Thank you so much

      Comment


      • #4
        sjsr
        You are most welcome
        Alex


        Originally posted by sjsr
        Works great, Thank you so much

        Comment

        Working...
        X