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 FishTrade, Today, 03:42 PM
    0 responses
    1 view
    0 likes
    Last Post FishTrade  
    Started by Richozzy38, Today, 01:06 PM
    3 responses
    14 views
    0 likes
    Last Post Richozzy38  
    Started by ttrader23, Today, 09:04 AM
    2 responses
    12 views
    0 likes
    Last Post ttrader23  
    Started by geotrades1, Today, 07:54 AM
    10 responses
    26 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by ninza33, Yesterday, 12:31 PM
    3 responses
    16 views
    0 likes
    Last Post NinjaTrader_LuisH  
    Working...
    X