Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Indicator Chart Label

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

    Indicator Chart Label

    Using the SampleDisplayName Indicator located in help guide here..
    https://ninjatrader.com/support/help...formatting.htm

    With some minor modifications here: (cs attatched)
    Code:
    public override string DisplayName
    { get
        {
            if(State != null && State == State.SetDefaults) return "SameHideDisplay()";
            else return IsHideDisplay ? "" : "SampleHideDisplay()";
        }
    }
    
    bool isHideDisplay = false;
    [Display(Name = "IsHideDisplay", GroupName = "Parameters", Order = 4)]
    public bool IsHideDisplay { get { return isHideDisplay; } set { isHideDisplay = value; } }
    Need some Clarification Please..

    Observational Steps:
    A.) Apply Indy and view the fixedText DrawObject's attatchedTo Property.. (perfect)
    B.) Now change IsHideDisplay to True, apply, and re-look at attachedTo.. (blank)

    Observational Results:
    ** When setting isHideDisplay to True? ALL Indicator Drawn Objects have Blank AttatchedTo

    Additional Observations:
    a.) Just Blanking out Label in Indy Properties causes other issues with Name display..
    b.) Using "" in Label does work, but doesn't help when you want modified display name..


    Questions
    1.) Is this expected to always have a blank attatchedTo when using this technique?
    2.) Could doing this ever cause any issues with any types of script drawn objects?
    3.) Even if not issue, anyway to get around this so the attatchedTo is not blank..



    Attached Files
    Last edited by -=Edge=-; 10-09-2022, 04:44 AM.
    -=Edge=-
    NinjaTrader Ecosystem Vendor - High Tech Trading Analysis

    #2
    Hello Edge,

    Thanks for your post.

    Yes, this is the expected results when the DisplayName property is overridden to be blank or null.

    Something you could consider is giving the indicator a short label so that you are able to identify it in the 'Attach to' section of the Drawing Objects window.

    Our Development team is currently implementing a fix so that the indicator name will display when the Indicator Label field is set to be blank or null. This fix will be added in the next version release of NinjaTrader. We do not have an estimated time for when this will be released. That said, I am not certain if it will be a fix for this specific case.

    Please let me know if I may assist further.
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    672 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    379 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    111 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    575 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    582 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X