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 casey44 with 1 posts (1 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,380 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?
REcommedations for programming help
Sierra Chart
Cheap historycal L1 data for stocks
Stocks and ETFs
Strategy stop orders partially filled
EasyLanguage Programming
What broker to use for trading palladium futures
Commodities
Trade idea based off three indicators.
Traders Hideout
 
  #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