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.
    Chris L.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by selu72, Today, 02:01 PM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_Zachary  
    Started by WHICKED, Today, 02:02 PM
    2 responses
    11 views
    0 likes
    Last Post WHICKED
    by WHICKED
     
    Started by f.saeidi, Today, 12:14 PM
    8 responses
    21 views
    0 likes
    Last Post f.saeidi  
    Started by Mikey_, 03-23-2024, 05:59 PM
    3 responses
    51 views
    0 likes
    Last Post Sam2515
    by Sam2515
     
    Started by Russ Moreland, Today, 12:54 PM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_Erick  
    Working...
    X