NexusFi: Find Your Edge


Home Menu

 





indicator label how-to


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one vickisb with 6 posts (0 thanks)
    2. looks_two sg72 with 3 posts (3 thanks)
    3. looks_3 EDGE with 2 posts (1 thanks)
    4. looks_4 zt379 with 1 posts (2 thanks)
      Best Posters
    1. looks_one zt379 with 2 thanks per post
    2. looks_two sg72 with 1 thanks per post
    3. looks_3 casey44 with 1 thanks per post
    4. looks_4 EDGE with 0.5 thanks per post
    1. trending_up 2,420 views
    2. thumb_up 7 thanks given
    3. group 6 followers
    1. forum 12 posts
    2. attach_file 6 attachments




 
Search this Thread

indicator label how-to

  #11 (permalink)
 vickisb 
Sarasota FL
 
Experience: Intermediate
Platform: Ninja Trader
Trading: ES
Posts: 59 since Feb 2017
Thanks Given: 36
Thanks Received: 22


EDGE View Post
Instead of completely removing the Label text and leaving it blank..

Try placing/using double quotes ( "" ) for the Label text instead...



Best of Luck and Be Safe in this Crazy World!

Thanks. When I put "" in the Label text, that's what I also got in the Configured indicators list to the left.

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Better Renko Gaps
The Elite Circle
Quantum physics & Trading dynamics
The Elite Circle
Can I use Ehlers Periodogram as the lookback for another …
NinjaTrader
Is there a way to simulate CONTINUOUS CONTRACT?
NinjaTrader
static margin on the right side of a chart
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
ApexTraderFunding.com experience and review
17 thanks
Trading with Intuition
12 thanks
System Performance Stats Comparison
12 thanks
GFIs1 1 DAX trade per day journal
10 thanks
Favorite High Probability Setup
9 thanks
  #12 (permalink)
 
EDGE's Avatar
 EDGE 
Saint Louis, Mo., USA
 
Experience: Advanced
Platform: NinjaTrader, Tradestation
Broker: Amp/CQG, Velocity/TT, Kinetick, TS
Trading: Anything That Moves..
Frequency: Daily
Duration: Minutes
Posts: 209 since Aug 2010
Thanks Given: 98
Thanks Received: 392


vickisb View Post
Thanks. When I put "" in the Label text, that's what I also got in the Configured indicators list to the left.

At one time, blank Config was an issue with all indicator scripts..
Upon Looking Again.. It seems as though that might be fixed..
Now by default, blanking label does not effect name in Configured..

Comment Out any code (outside of OnStateChange -> State == Defaults)
that would change the Name or specifically Override DisplayName..
After Commenting out Code.. Test Indy on Chart w/Label Text and Blank..

If you then use the double quotes in Label field vs blanking it out
It will condense the displayed text in Configured to just Indy Name..
(while still leaving displayed text blank on the chart of course)


Now, if you absolutely have to Override the DisplayName for some reason..
And never want any display name text on chart nor ever need that option..
 
Code
public override string DisplayName
{ get { return (State != null && State == State.SetDefaults) ? "IndicatorConfigName()" : "";} }

If you'd prefer having the option to display on chart or not.. See post 4 from @zt379



Be Safe in this Crazy World!

Reply With Quote
Thanked by:
  #13 (permalink)
 vickisb 
Sarasota FL
 
Experience: Intermediate
Platform: Ninja Trader
Trading: ES
Posts: 59 since Feb 2017
Thanks Given: 36
Thanks Received: 22



EDGE View Post
At one time, blank Config was an issue with all indicator scripts..
Upon Looking Again.. It seems as though that might be fixed..
Now by default, blanking label does not effect name in Configured..

Comment Out any code (outside of OnStateChange -> State == Defaults)
that would change the Name or specifically Override DisplayName..
After Commenting out Code.. Test Indy on Chart w/Label Text and Blank..

If you then use the double quotes in Label field vs blanking it out
It will condense the displayed text in Configured to just Indy Name..
(while still leaving displayed text blank on the chart of course)


Now, if you absolutely have to Override the DisplayName for some reason..
And never want any display name text on chart nor ever need that option..
 
Code
public override string DisplayName
{ get { return (State != null && State == State.SetDefaults) ? "IndicatorConfigName()" : "";} }

If you'd prefer having the option to display on chart or not.. See post 4 from @zt379

Thanks!!! Turns out it was the code in public override string DisplayName that was causing the problem in each of my problem indicators. When I commented out that section, I was able to blank out the label name without blanking out the indicator name in the Configured list. And when I looked at other indicators that don't have the problem, none of them I've checked have that section, so that definitely was the problem. Immense thanks!




Be Safe in this Crazy World!




Started this thread Reply With Quote




Last Updated on July 7, 2022


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts