Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Showing Daily Gain/Loss percentage

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

    Showing Daily Gain/Loss percentage

    I am writing an indicator to graphically show the daily gain/loss percentage on the chart -- for daily charts. The problem is until the next daily bar opens, I don't have access to the daily bar that just closed. As a workaround, I added 5-min charts, but the last bar in 5-min chart is not available either.

    What is the solution please.

    #2
    Hello stevenev1, thanks for your post.

    The 5 minute bar will close every 5 minutes, so checking for: if(BarsInProgress == 1) will let you know when the 5 minute bar closes. If this does not resolve your inquiry, could you post a simplified test script?

    I look forward to hearing from you.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, Yesterday, 11:51 AM
    0 responses
    19 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, Yesterday, 11:48 AM
    0 responses
    23 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-25-2026, 09:53 PM
    0 responses
    30 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 03-25-2026, 09:51 PM
    0 responses
    18 views
    0 likes
    Last Post CaptainJack  
    Started by Mindset, 03-23-2026, 11:13 AM
    0 responses
    23 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X