Announcement

Collapse
No announcement yet.

Close of bar

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

  • Close of bar

    Hello there,
    How can I evaluate conditions only on the close of a bar.

    example: I have a strategy that operates on a 240 min chart. However, eSignal updates intrabar and causes my strategy to evaluate on every tick.

    Thanks.

  • #2
    imesforum
    There are essentially two ways in which you can do this (each with its own set of pros and cons).
    Use either a setComputeOnClose() statement or execute your calculations within a BARSTATE_NEWBAR condition (see getBarState())
    Search the forum and you will find many discussions with examples of the use of either
    Alex


    Originally posted by imesforum View Post
    Hello there,
    How can I evaluate conditions only on the close of a bar.

    example: I have a strategy that operates on a 240 min chart. However, eSignal updates intrabar and causes my strategy to evaluate on every tick.

    Thanks.

    Comment


    • #3
      Thank you ACM

      Comment


      • #4
        imesforum
        You are welcome
        Alex


        Originally posted by imesforum View Post
        Thank you ACM

        Comment

        Working...
        X