Announcement

Collapse
No announcement yet.

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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    152 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    89 views
    1 like
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    131 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    127 views
    1 like
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    107 views
    0 likes
    Last Post CarlTrading  
    Working...
    X