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 argusthome, 03-08-2026, 10:06 AM
    0 responses
    61 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    40 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    21 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    23 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    51 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X