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

Owner for a drawing object in the indicator panel?

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

    Owner for a drawing object in the indicator panel?

    Hi,

    I need to draw a dot on an indicator, but I cannot figure out how to set the Owner in the Dot method. The indicator has isOverlay = false. My code

    if (HighestBar(Close, barLookback) == 0)
    Draw.Dot(this, "Up Dot", true, 0, difference, Brushes.Lime);

    This draws a dot in the data panel. I would like the dot to show in the Indicator panel.

    Thanks

    #2
    Hello vishalct,

    Thanks for your post.

    Where draw objects are drawn is controlled by the setting DrawOnPricePanel. This is set in the OnStateChange() method at State.SetDefaults. By default you will find DrawOnPricePanel = true; When true all draw objects are sent to the price panel, when false, all draw objects are sent to the indicator panel (if any) that the indicator is applied to.

    Reference: https://ninjatrader.com/support/help...pricepanel.htm
    Paul H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by OllieFeraher, 05-09-2024, 11:14 AM
    5 responses
    16 views
    0 likes
    Last Post MisterTee  
    Started by jackiegils, Yesterday, 11:05 PM
    1 response
    9 views
    0 likes
    Last Post marcus2300  
    Started by Skifree, Today, 02:50 PM
    0 responses
    8 views
    0 likes
    Last Post Skifree
    by Skifree
     
    Started by owen5819, Today, 02:24 PM
    1 response
    12 views
    0 likes
    Last Post owen5819  
    Started by Skifree, 05-07-2024, 11:38 PM
    2 responses
    28 views
    1 like
    Last Post Skifree
    by Skifree
     
    Working...
    X