View Full Version : Suppress Indicator inputs at top of chart
05-21-2007, 09:00 AM
At the top of the chart I would like to only display the indicator names applied to that chart. I would like to disable the display of each individual input parameter and its value for that indicator.
Is this done in the properties section? Can you show a simple example?
05-21-2007, 09:25 AM
Thank you for your post.
Unfortunately this is currently not possible. I will ask development if they can add your suggestion to the list of future considerations.
05-21-2007, 09:40 AM
This is on our list for a future version.
03-30-2010, 10:41 AM
as this is an old thread, i'm hoping there is a solution now available.
i have a strategy with numerous parameters and, for simplicity, i would like to just display the name of the strategy on the chart (suppressing all of the inputs).
can someone please provide code to accomplish this?
03-30-2010, 10:47 AM
This has been added in NinjaTrader 7.
NinjaTrader 7 is in the later stages of beta testing is scheduled for the public beta to be released soon. There is no release date for NinjaTrader 7 yet. Please visit the below link for information on NinjaTrader 7 features and release information:
03-30-2010, 11:24 AM
thanks for the quick reply. i am a beta user on NT7b12, but didn't see the code in the reference manual. perhaps i missed it. can you provide it?
03-30-2010, 11:55 AM
Copied from the NinjaTrader 7 Features List
Enhanced Indicator Labels
You can now set an absolute label by enclosing the label in quotations. Doing so will trim the trailing system added series/parameter information. Instead of seeing "MyIndicator(101 parameters go here......)" you can display only "MyIndicator" if you wish.
03-30-2010, 12:03 PM
Blah Blah etc.
PaintPriceMarkers = false;
AutoScale = false;
Name = "YourIndicatorName";
public override string ToString()
/// Called on each bar update event (incoming tick)
protected override void OnBarUpdate()
Blah Blah etc.
03-30-2010, 12:04 PM
brilliant -- thanks so much guys ;-)
was particularly interested in doing this for strategy, not indicator, so i'll try eDanny's code. thanks again!
03-30-2010, 03:19 PM
ok...this is not exactly what i was looking for. by overriding ToString, then won't that mess up any kind of debug or output-window stuff?
let me rephrase:
what is the property i can set (in Initialize()?) to set that Label like the screenshot Brett posted? or is there another property that will true/false the display of the parameter-values?
and...second question...is that property available just for indicators, or also for strategies? i am chiefly interested in this for my strategy code.
03-30-2010, 03:29 PM
e-man, please take a look at this reference sample titled "Removing and Custom Formatting an Indicator's chart label (http://www.ninjatrader-support2.com/vb/showthread.php?t=4749)".
03-30-2010, 03:34 PM
This is possible when adding a strategy to a chart the same way it is possible with indicators. However if your looking to add other information to the top label String then just a custom name then you will need to use the method posted by Austin to integrate custom parameters or variables that you want added.
It is the same label property that is set when you apply an indicator to the chart. Use quotation marks around what you want listed there for it to override the default label.
This is with NinjaTrader 7. The latest release of NinjaTrader version 6.5.1000.15 will allow you to edit the label as well, but the parameters will still be listed. You can however delete out the label name to have no label on the top of the chart now.
03-30-2010, 03:39 PM
thanks for the link, Austin. and thanks for the clarification, Brett. the sample code looks same/similar to eDanny's above ... and it did fix my issue.
i was concerned that this would negatively impact inline debug calls, but i'm happy to report that it works just great :)
03-31-2010, 11:42 AM
Austin - That script Josh wrote back in '07 was right on! Nice job guys...nice job!