NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript Development Support > Indicator Development

Indicator Development Support for the development of custom indicators using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 05-21-2007, 09:00 AM   #1
OnePutt
Junior Member
 
Join Date: Nov 2006
Location: , ,
Posts: 26
Thanks: 0
Thanked 0 times in 0 posts
Default Suppress Indicator inputs at top of chart

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?
OnePutt is offline  
Reply With Quote
Old 05-21-2007, 09:25 AM   #2
NinjaTrader_Vincent
NinjaTrader Customer Service
 
NinjaTrader_Vincent's Avatar
 
Join Date: Mar 2005
Location: Amsterdam, The Netherlands
Posts: 2,042
Thanks: 0
Thanked 3 times in 3 posts
Default

Hi,

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.


Vince
NinjaTrader_Vincent is offline  
Reply With Quote
Old 05-21-2007, 09:40 AM   #3
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
Default

This is on our list for a future version.
NinjaTrader_Ray is offline  
Reply With Quote
Old 03-30-2010, 10:41 AM   #4
e-man
Senior Member
 
Join Date: Dec 2008
Location: http://coroin.com
Posts: 156
Thanks: 8
Thanked 7 times in 7 posts
Default

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?

cheers,
-e
e-man is offline  
Reply With Quote
Old 03-30-2010, 10:47 AM   #5
NinjaTrader_Brett
NinjaTrader Customer Service
 
NinjaTrader_Brett's Avatar
 
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,498
Thanks: 109
Thanked 291 times in 280 posts
Default

Hello,

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:

http://www.ninjatrader.com/webnew/NT7/NinjaTrader7.html
NinjaTrader_Brett is offline  
Reply With Quote
Old 03-30-2010, 11:24 AM   #6
e-man
Senior Member
 
Join Date: Dec 2008
Location: http://coroin.com
Posts: 156
Thanks: 8
Thanked 7 times in 7 posts
Default

hi brett,

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?

cheers,
-e
e-man is offline  
Reply With Quote
Old 03-30-2010, 11:55 AM   #7
NinjaTrader_Brett
NinjaTrader Customer Service
 
NinjaTrader_Brett's Avatar
 
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,498
Thanks: 109
Thanked 291 times in 280 posts
Default

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.
NinjaTrader_Brett is offline  
Reply With Quote
Old 03-30-2010, 12:03 PM   #8
eDanny
Senior Member
 
eDanny's Avatar
 
Join Date: Jul 2008
Location: East Rochester, NY
Posts: 899
Thanks: 0
Thanked 19 times in 17 posts
Default

In Initialize:

Blah Blah etc.
PaintPriceMarkers = false;
AutoScale = false;

Name = "YourIndicatorName";
}

public override string ToString()
{
return Name;
}

/// <summary>
/// Called on each bar update event (incoming tick)
/// </summary>
protected override void OnBarUpdate()
{
Blah Blah etc.
eDanny is offline  
Reply With Quote
Old 03-30-2010, 12:04 PM   #9
e-man
Senior Member
 
Join Date: Dec 2008
Location: http://coroin.com
Posts: 156
Thanks: 8
Thanked 7 times in 7 posts
Default

brilliant -- thanks so much guys ;-)

was particularly interested in doing this for strategy, not indicator, so i'll try eDanny's code. thanks again!

cheers,
-e
e-man is offline  
Reply With Quote
Old 03-30-2010, 03:19 PM   #10
e-man
Senior Member
 
Join Date: Dec 2008
Location: http://coroin.com
Posts: 156
Thanks: 8
Thanked 7 times in 7 posts
Default

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.

cheers,
-e
e-man is offline  
Reply With Quote
Old 03-30-2010, 03:29 PM   #11
NinjaTrader_Austin
NinjaTrader Customer Service
 
NinjaTrader_Austin's Avatar
 
Join Date: Jun 2009
Location: Denver, CO
Posts: 3,149
Thanks: 10
Thanked 89 times in 81 posts
Default

e-man, please take a look at this reference sample titled "Removing and Custom Formatting an Indicator's chart label".
NinjaTrader_Austin is offline  
Reply With Quote
Old 03-30-2010, 03:34 PM   #12
NinjaTrader_Brett
NinjaTrader Customer Service
 
NinjaTrader_Brett's Avatar
 
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,498
Thanks: 109
Thanked 291 times in 280 posts
Default

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.
Last edited by NinjaTrader_Brett; 03-30-2010 at 03:52 PM.
NinjaTrader_Brett is offline  
Reply With Quote
Old 03-30-2010, 03:39 PM   #13
e-man
Senior Member
 
Join Date: Dec 2008
Location: http://coroin.com
Posts: 156
Thanks: 8
Thanked 7 times in 7 posts
Smile

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

thanks again!
-e
Last edited by e-man; 03-31-2010 at 11:54 AM.
e-man is offline  
Reply With Quote
Old 03-31-2010, 11:42 AM   #14
gbrest
Junior Member
 
Join Date: May 2009
Location: Tonganoxie, Kansas
Posts: 18
Thanks: 1
Thanked 0 times in 0 posts
Default

Austin - That script Josh wrote back in '07 was right on! Nice job guys...nice job!
gbrest is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
fixed range on chart - chart times Laura47 Charting 13 07-10-2007 01:20 AM
User inputs -- manually created (not via wizard) scriabinop23 General Programming 2 05-14-2007 11:30 PM
Maximum number of user defined inputs Folls Indicator Development 1 05-03-2007 07:58 AM
Market Statistics as Indicator Inputs goWms General Programming 1 01-28-2007 09:10 AM
Can I change an existing chart to a tick interval chart? BradB Charting 4 01-25-2007 07:50 AM


All times are GMT -6. The time now is 06:38 AM.