Announcement

Collapse
No announcement yet.

premature creation of the action

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

  • premature creation of the action


    This formula creates the action before the close of the current candle close.
    while the candle is created the condition is true. but by the close of the candle calling the action the condition is not true. However the text displayed.
    to experience this you have to be online during market hours.
    Thank you
    Tom
    Attached Files
    Tom Shadi

  • #2
    Tom
    The formula you posted uses setComputeOnClose() which means that it will evaluate the conditions one time only when the bar closes. I have run your efs both in real time and Tick Replay (which is the same as real time) and as far as I can see no action is triggered before the bar is completed. You may be running a version of the script that does not have setComputeOnClose()
    Also as indicated in this thread you are using positive bar indexes which means the script is looking forward to the next bar.
    Alex

    Comment

    Working...
    X