NexusFi: Find Your Edge


Home Menu

 





Naming indicators & strategies with hyphens, dashes, spaces, etc.


Discussion in Platforms and Indicators

Updated
      Top Posters
    1. looks_one Zondor with 1 posts (2 thanks)
    2. looks_two Quick Summary with 1 posts (0 thanks)
    3. looks_3 RJay with 1 posts (0 thanks)
    4. looks_4 gregid with 1 posts (0 thanks)
    1. trending_up 3,476 views
    2. thumb_up 2 thanks given
    3. group 3 followers
    1. forum 4 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
 
Zipper Ripper's Avatar
 Zipper Ripper 
Bowie, MD, USA
 
Experience: Advanced
Platform: NinjaTrader
Trading: futures
Posts: 25 since Sep 2010
Thanks Given: 58
Thanks Received: 8

From time to time I see someone naming an indicator or strategy that uses a hyphen, dash or space. How do they do that in Ninjatrader? From what I can tell it won't allow those characters. Or any special characters. Perhaps this will generate enough of a responce that a new thread can be started. Thanks!!!


Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Iran Update May 8: Still Reviewing MOU, Demands Reparati …
Traders Hideout
Warsh Rate Hike at 40%, Iran June 15 Expires Tonight at …
Prediction Markets & Event Contracts
Iran and Israel Stand Down: What $9M in Peace Contracts …
Prediction Markets & Event Contracts
Memorandum Watch: How the 60-Day MOU Framework Makes May …
Prediction Markets & Event Contracts
CFTC Opens First COT Report Review in 20 Years -- Asks W …
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
8 thanks
Darmok and Jalad at Tanagra
1 thanks
  #3 (permalink)
 
gregid's Avatar
 gregid 
Wrocław, Poland
 
Experience: Intermediate
Platform: NinjaTrader, Racket
Trading: Ockham's razor
Posts: 649 since Aug 2009
Thanks Given: 320
Thanks Received: 623


I haven't done it for a while but if you change the filename outside of NinjaTrader (eg. Windows Explorer) and then compile it from NT it should allow you to include characters like hyphen.


Reply With Quote
  #4 (permalink)
 
RJay's Avatar
 RJay 
Hartford, CT. USA
 Vendor: www.innovative-trading-solutions-online.com 
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG, Kinetick
Trading: ES
Posts: 687 since Jun 2009
Thanks Given: 765
Thanks Received: 789


Zipper Ripper View Post
From time to time I see someone naming an indicator or strategy that uses a hyphen, dash or space. How do they do that in Ninjatrader? From what I can tell it won't allow those characters. Or any special characters. Perhaps this will generate enough of a responce that a new thread can be started. Thanks!!!

Hi ZP,

NT has specific reasons why they don't want these characters used.

If you do want to use these characters in names, type out the name you want to use anywhere outside the NT file "save as "naming popup window.

Copy the name and paste it into the "save as" naming window in the NT editor and select save.

RJay


Reply With Quote
  #5 (permalink)
 
Zondor's Avatar
 Zondor 
Portland Oregon, United States
Market Wizard
 
Experience: Beginner
Platform: Ninjatrader®
Broker: CQG, Kinetick
Trading: Gameplay Klownbine® Trading of Globex
Posts: 1,333 since Jul 2009
Thanks Given: 1,246
Thanks Received: 2,734

In the Initialize method place the following line of code.

this.Name="Any Indicator Name you want, including , ; : and even useless special characters, even such as ®"


Whatever is within the quotes will appear in the Indicator List as the name of the indicator. The Indicator List is the dropdown list of indicators that appears when you select the menu option to add an indicator to a chart.

This has no effect on the file name or the class name.

Don't overdo it with special characters and spaces in the file names, which are governed by what Windows will allow you to put in. Spaces and commas are OK. The file name has no effect on the name that will appear in the indicator list or on the class name, which is the actual name of the indicator by which it is called programatically.

A "funny" trick that some guys use is to set this.Name=""; Ha ha ha, this will show the name of the indicator as an empty string (ie a blank line) at the top of the indicator list. Ferry vunny.


Follow me on X Visit my NexusFi Trade Journal Reply With Quote
Thanked by:




Last Updated on August 27, 2012


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts