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

Bug in draw object using time V7.0.1000.11

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

    Bug in draw object using time V7.0.1000.11

    Scenario: I use DRAWRECTANGLE or DRAWLINE on a chart using an indicator with start time of now and an end time in the distant future. Everything is perfect until the start time of the rectangle falls off the the left of the chart then the rectangle no longer shows even though the end date has not been met.

    I can go to higher range chart and it works fine but would like to use my lower time frame. It would appear ninja looks to see what objects begin on the displayed chart to determine what to draw and not what might have carried over or just rolled off the chart.

    This is easily repeatable.

    Is there a fix or workaround?

    #2
    Hello,

    If the object is being drawn more than 256 bars back you will need to set
    MaximumBarsLookBack = MaximumBarsLookBack.Infinite;


    Additionally please ensure enough bars are loaded onto your chart by right clicking the chart -> data series... -> days to load -> increase this as needed

    Please let me know if I can be of further assistance.
    LanceNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by The_Sec, Yesterday, 03:37 PM
    1 response
    11 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by vecnopus, Today, 06:15 AM
    0 responses
    1 view
    0 likes
    Last Post vecnopus  
    Started by Aviram Y, Today, 05:29 AM
    0 responses
    5 views
    0 likes
    Last Post Aviram Y  
    Started by quantismo, 04-17-2024, 05:13 PM
    3 responses
    27 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by ScottWalsh, 04-16-2024, 04:29 PM
    7 responses
    36 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Working...
    X