Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

There is mistake in help guide!

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

    There is mistake in help guide!

    Look at this page https://ninjatrader.com/support/help..._practices.htm
    Open the section Performance practices and look at this header Restricting OnRender() calculations to visible ChartBars

    The loop "for" is endless in this case because the condition "ChartBars.FromIndex <= ChartBars.ToIndex" is always true! To make it working, It needs change It like this

    before:
    for (int barIndex = ChartBars.FromIndex; ChartBars.FromIndex <= ChartBars.ToIndex; barIndex++)

    after:
    for (int barIndex = ChartBars.FromIndex; barIndex <= ChartBars.ToIndex; barIndex++)
    Handlar
    NinjaTrader Ecosystem Vendor - Handlar

    #2
    Hello handlar,

    Thank you for your post.

    I will forward this to our Product Management team.

    Please let me know if you have any questions.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by WHICKED, Today, 12:45 PM
    1 response
    10 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by samish18, Today, 01:01 PM
    0 responses
    5 views
    0 likes
    Last Post samish18  
    Started by WHICKED, Today, 12:56 PM
    0 responses
    8 views
    0 likes
    Last Post WHICKED
    by WHICKED
     
    Started by Spiderbird, Today, 12:15 PM
    2 responses
    11 views
    0 likes
    Last Post Spiderbird  
    Started by FrazMann, Today, 11:21 AM
    2 responses
    8 views
    0 likes
    Last Post NinjaTrader_ChristopherJ  
    Working...
    X