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 vibrationketousa, Today, 12:26 AM
    0 responses
    1 view
    0 likes
    Last Post vibrationketousa  
    Started by vibrationketousa, Today, 12:24 AM
    0 responses
    3 views
    0 likes
    Last Post vibrationketousa  
    Started by hdge4u, Yesterday, 09:09 PM
    0 responses
    19 views
    0 likes
    Last Post hdge4u
    by hdge4u
     
    Started by hdge4u, Yesterday, 09:02 PM
    0 responses
    10 views
    0 likes
    Last Post hdge4u
    by hdge4u
     
    Started by stormcloudseven, Yesterday, 08:41 PM
    1 response
    10 views
    0 likes
    Last Post DavidTrades  
    Working...
    X