Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Limit Draw Objects / Limit Indicator

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

    Limit Draw Objects / Limit Indicator

    Hi,

    I made an indicator that draws rays connecting similar candlesticks. It does so on all the input data loaded even though it's lookback period is set to less. I can't limit the input data as I do need a fair amount loaded for a monthly pivot indicator.

    Can I limit my indicator to start from say 24 hours ago or something similar?

    Can I limit the number of draw objects to say the last 20 or so?

    Is there another solution when there are just too many draw objects but limiting data is not an option?

    thanks

    #2
    Hi stockgoblin,

    Yes, you can custom code a lot of these controls. There isn't an NT property to limit the # of code placed drawing objects though.

    if (Time[0].Date == DateTime.Now.Date)

    That example checks the bar time stamp against your computer date and, since working with .net there is a lot of flexibility working with date/ time.
    Ryan M.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    648 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    369 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    108 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    572 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    574 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X