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

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 algospoke, Yesterday, 06:40 PM
    2 responses
    19 views
    0 likes
    Last Post algospoke  
    Started by ghoul, Today, 06:02 PM
    3 responses
    14 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by jeronymite, 04-12-2024, 04:26 PM
    3 responses
    44 views
    0 likes
    Last Post jeronymite  
    Started by Barry Milan, Yesterday, 10:35 PM
    7 responses
    20 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by AttiM, 02-14-2024, 05:20 PM
    10 responses
    180 views
    0 likes
    Last Post jeronymite  
    Working...
    X