Announcement

Collapse
No announcement yet.

Current or todays price

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

  • Current or todays price

    In script, when I use close or close(0), it uses previous day close for daily interval because today is not over( I suppose). How do I get the current price during the day trading times?

  • #2
    kpmci
    close(0) returns the Close value of the bar currently being processed and not that of the prior bar.
    If that is not what you are seeing then you should post the script (preferably accompanied by some image) that illustrates your point
    Alex


    Originally posted by kpmci View Post
    In script, when I use close or close(0), it uses previous day close for daily interval because today is not over( I suppose). How do I get the current price during the day trading times?

    Comment

    Working...
    X