Dark Theme
Light Theme
Welcome to NexusFi: the best trading community on the planet, with over 200,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to
register in order to view the content of the threads and start contributing to our community.
It's free for basic access, or support us by becoming an Elite Member -- discounts are available after registering.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
July 17th, 2010, 09:27 PM
Belgium
Experience: Advanced
Platform: SaxoTrader
Broker: SaxoBank
Trading: ESTX
Posts: 289 since Dec 2009
Thanks Given: 243
Thanks Received: 110
Hi,
Too much label info on the chart bothers me.
I know you can avoid it by using
Code
public override string ToString()
{
return "Indicator";
}
which forces the name on the chart. However you loose variables settings too.
Is there a way to only errase instrument and timeframe info, but keep variables displayed ?
Thanks
Can you help answer these questions from other members on NexusFi?
Best Threads (Most Thanked) in the last 7 days on NexusFi
July 18th, 2010, 03:57 AM
Manta, Ecuador
Site Administrator Developer Swing Trader
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,669 since Jun 2009
Thanks Given: 33,669
Thanks Received: 102,557
I think you can just change the label to a space and it will keep the indicator name but lose the settings.
this.Name = ' ';
Mike
July 18th, 2010, 04:17 AM
Belgium
Experience: Advanced
Platform: SaxoTrader
Broker: SaxoBank
Trading: ESTX
Posts: 289 since Dec 2009
Thanks Given: 243
Thanks Received: 110
Hi Mike,
If I do that I really get a whole blank for everything.
July 18th, 2010, 07:14 AM
Here, GA
Posts: 158 since Jun 2009
Thanks Given: 1
Thanks Received: 87
An option is to use StringBuilder to create the string to display whatever you want. Do not forget to add " using System.Text; " to the declarations.
Code
public override string ToString () { StringBuilder sb = new StringBuilder (); sb . AppendFormat ( "Modified Bands({0},{1})" , period . ToString (), deviation . ToString ()); return sb . ToString (); }
July 18th, 2010, 08:19 AM
Belgium
Experience: Advanced
Platform: SaxoTrader
Broker: SaxoBank
Trading: ESTX
Posts: 289 since Dec 2009
Thanks Given: 243
Thanks Received: 110
Thank you greatly
July 18th, 2010, 08:47 AM
Madison, WI
Experience: Advanced
Platform: ALT
Trading: ES
Posts: 624 since Jan 2010
Thanks Given: 356
Thanks Received: 1,129
TAJTrades
An option is to use StringBuilder to create the string to display whatever you want.
Actually, it is much simpler than using string builder, just do the following:
Code
public override string ToString ()
{
return "Modified Bands(" + period . ToString () + "," + deviation . ToString () + ")" ;
}
Using StringBuilder is not efficient for a small number of strings (you can google it, but here is one link StringBuilder ).
July 18th, 2010, 09:57 AM
Belgium
Experience: Advanced
Platform: SaxoTrader
Broker: SaxoBank
Trading: ESTX
Posts: 289 since Dec 2009
Thanks Given: 243
Thanks Received: 110
Thanks for the light version too
Last Updated on July 18, 2010