https://ninjatrader.com/support/help...formatting.htm
With some minor modifications here: (cs attatched)
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; } }
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..


Comment