NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript Educational Resources > Reference Samples

Reference Samples Official NinjaScript reference code samples

Reply
 
Thread Tools Display Modes
Old 12-30-2007, 06:49 PM   #1
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default Indicator: Removing and Custom Formatting an Indicator’s Chart Label

Reference sample for NinjaTrader 6.5.XXXX.X or greater.

If you create a NinjaScript indicator or strategy with many customizable parameters, you will have a long label when you load the NinjaScript onto your chart. This may be visually cumbersome so you may want to trim the displayed label to a more manageable size that only contains the most important parameters.

TIP: When adding an indicator onto a chart you can also completely remove any labeling on the chart of the indicator name. You can do this by clearing the “Label” field under the “General” category when you add the indicator onto the chart.

This reference sample demonstrates the following concept:
  • Overriding the ToString() method
Important methods and properties used include:Other methods and properties of interest include:Import instructions for NinjaTrader 6.5.XXXX.X or greater:
  1. Download the file contained in this thread to your PC desktop
  2. From the Control Center window, select the menu File > Utilities > Import NinjaScript
  3. Select the downloaded file
Attached Files
File Type: zip SampleLabelTrim.zip (2.1 KB, 993 views)
NinjaTrader_Josh 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
Custom formatting the value at PriceMarker stratis_vip Indicator Development 6 09-24-2011 12:23 PM
Exporting a Custom Indicator daven Installation and Licensing 8 12-04-2008 03:29 PM
Custom Indicator ashish Indicator Development 6 12-29-2007 06:54 PM
Custom Indicator Canon54 General Programming 3 12-14-2007 06:53 AM
Using a custom indicator SuzyG Strategy Development 17 03-13-2007 10:59 AM


All times are GMT -6. The time now is 02:36 AM.