Announcement

Collapse
No announcement yet.

How to trigger a formula once only?

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

  • How to trigger a formula once only?

    Is there any way to trigger a formula only once when the 5th bar is loaded ?

    Thanks

  • #2
    Patch227
    A simple way to do that is to enclose the code that needs to be executed on the fifth bar inside a conditional statement that checks if getCurrentBarCount() is equal to 5 (see the link to the EFS KnowledgeBase article for the description of the function)
    Alex


    Originally posted by Patch227
    Is there any way to trigger a formula only once when the 5th bar is loaded ?

    Thanks

    Comment


    • #3
      Thanks a lot Alex

      I get the idea now. If you want some data out of a chart, try "get" first.

      Comment


      • #4
        Patch227
        You are most welcome
        Alex


        Originally posted by Patch227
        Thanks a lot Alex

        I get the idea now. If you want some data out of a chart, try "get" first.

        Comment

        Working...
        X