I downloaded an indicator from the NT User App Share Forum, Opening Price (R1).
For each day, it draws a horizontal line at a user-determined time which is set in the indicator.
It works great, but it takes the title used in the indicator listing from the label plus the time, e.g., if the label is blank and the time is set to 8, the indicator listing becomes "(8)". If I name the label "Open", the title in the indicator list becomes "Open (8)".
I have quite a few indicators. I keep them organized by placing them in alphabetical order.
I'm not knowledgeable enough to revise the code, but I'm hoping that it's simple enough to change so that you can supply me with the necessary text. I'm fine if I have to hard code the indicator title into the script, e.g., "Opening Time" without the actual time and can't change it for each instance.
Here's how what I think is the appropriate code section currently reads:
// In order to trim the indicator's label we need to override the ToString() method.
public override string DisplayName
{
get { return Name + "(" + OpenHour + ")";}
}
Any help you could give me would be appreciated.
Thanks,
Stephen

Comment