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 Mindset, 04-21-2026, 06:46 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    144 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    69 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    125 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    78 views
    0 likes
    Last Post PaulMohn  
    Working...
    X