![]() |
|
|||||||
| Indicator Development Support for the development of custom indicators using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: Nov 2006
Location: , ,
Posts: 26
Thanks: 0
Thanked 0 times in 0 posts
|
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? |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Mar 2005
Location: Amsterdam, The Netherlands
Posts: 2,042
Thanks: 0
Thanked 3 times in 3 posts
|
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
Vincent
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
|
This is on our list for a future version.
Ray
NinjaTrader Customer Service |
|
|
|
|
|
#4 |
|
Senior Member
Join Date: Dec 2008
Location: http://coroin.com
Posts: 156
Thanks: 8
Thanked 7 times in 7 posts
|
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 |
|
|
|
|
|
#5 |
|
NinjaTrader Customer Service
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,498
Thanks: 109
Thanked 291 times in 280 posts
|
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
Brett
NinjaTrader Customer Service |
|
|
|
|
|
#6 |
|
Senior Member
Join Date: Dec 2008
Location: http://coroin.com
Posts: 156
Thanks: 8
Thanked 7 times in 7 posts
|
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 |
|
|
|
|
|
#7 |
|
NinjaTrader Customer Service
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,498
Thanks: 109
Thanked 291 times in 280 posts
|
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.
Brett
NinjaTrader Customer Service |
|
|
|
|
|
#8 |
|
Senior Member
Join Date: Jul 2008
Location: East Rochester, NY
Posts: 899
Thanks: 0
Thanked 19 times in 17 posts
|
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. |
|
|
|
|
|
#9 |
|
Senior Member
Join Date: Dec 2008
Location: http://coroin.com
Posts: 156
Thanks: 8
Thanked 7 times in 7 posts
|
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 |
|
|
|
|
|
#10 |
|
Senior Member
Join Date: Dec 2008
Location: http://coroin.com
Posts: 156
Thanks: 8
Thanked 7 times in 7 posts
|
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 |
|
|
|
|
|
#11 |
|
NinjaTrader Customer Service
Join Date: Jun 2009
Location: Denver, CO
Posts: 3,149
Thanks: 10
Thanked 89 times in 81 posts
|
e-man, please take a look at this reference sample titled "Removing and Custom Formatting an Indicator's chart label".
Austin
NinjaTrader Customer Service |
|
|
|
|
|
#12 |
|
NinjaTrader Customer Service
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,498
Thanks: 109
Thanked 291 times in 280 posts
|
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.
Brett
NinjaTrader Customer Service
Last edited by NinjaTrader_Brett; 03-30-2010 at 03:52 PM.
|
|
|
|
|
|
#13 |
|
Senior Member
Join Date: Dec 2008
Location: http://coroin.com
Posts: 156
Thanks: 8
Thanked 7 times in 7 posts
|
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.
|
|
|
|
|
|
#14 |
|
Junior Member
Join Date: May 2009
Location: Tonganoxie, Kansas
Posts: 18
Thanks: 1
Thanked 0 times in 0 posts
|
Austin - That script Josh wrote back in '07 was right on! Nice job guys...nice job!
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |