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.
    DierkNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by jandersna, Today, 10:56 PM
    0 responses
    1 view
    0 likes
    Last Post jandersna  
    Started by Revazi123, Today, 01:01 PM
    1 response
    17 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by AaronKoRn, Today, 10:17 AM
    1 response
    11 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by PWillard, Today, 10:02 AM
    1 response
    11 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by loriyag, Today, 10:20 PM
    0 responses
    1 view
    0 likes
    Last Post loriyag
    by loriyag
     
    Working...
    X