Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Inconsistent behavior for drawing parameters

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

    Inconsistent behavior for drawing parameters

    When drawing a line in a strategy, from within the context of the secondary bar (BarsInProgress == 1), the start of the line according to the BarsAgo parameter will count back bars as they occur on the chart for the primary bars. Which is good and makes sense.
    For example,
    DrawLine("Testline", 7, High[0], 0, High[0], Color.Gold, DashStyle.Solid, 3);
    This will draw the line starting 7 bars back as per the primary bar count. However, the BarsAgo parameter in the drawline is limited to a maximum of whatever the secondary bar count maximum is. I assume this is because I am in the context of the secondary bar. This is inconsistent behaviour. If the BarsAgo parameter starts the line according to the primary bars, then it makes sense that you can go back as many bars as are in the primary bar count, and not be dependent on a secondary maximum, which has nothing to do with how the line is being drawn.

    #2
    This is a bug which will be fixed with next update. Thanks for reporting.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by aussugardefender, Today, 01:07 AM
    0 responses
    3 views
    0 likes
    Last Post aussugardefender  
    Started by pvincent, 06-23-2022, 12:53 PM
    14 responses
    238 views
    0 likes
    Last Post Nyman
    by Nyman
     
    Started by TraderG23, 12-08-2023, 07:56 AM
    9 responses
    384 views
    1 like
    Last Post Gavini
    by Gavini
     
    Started by oviejo, Today, 12:28 AM
    0 responses
    4 views
    0 likes
    Last Post oviejo
    by oviejo
     
    Started by pechtri, 06-22-2023, 02:31 AM
    10 responses
    125 views
    0 likes
    Last Post Leeroy_Jenkins  
    Working...
    X