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 RJay with 1 posts (0 thanks)
    2. looks_two gregid with 1 posts (0 thanks)
    3. looks_3 Zipper Ripper with 1 posts (0 thanks)
    4. looks_4 Zondor with 1 posts (2 thanks)
    1. trending_up 2,788 views
    2. thumb_up 2 thanks given
    3. group 3 followers
    1. forum 4 posts
    2. attach_file 0 attachments




 
Search this Thread

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

  #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?
Better Renko Gaps
The Elite Circle
Futures True Range Report
The Elite Circle
Are there any eval firms that allow you to sink to your …
Traders Hideout
Deepmoney LLM
Elite Quantitative GenAI/LLM
My NT8 Volume Profile Split by Asian/Euro/Open
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
61 thanks
Funded Trader platforms
39 thanks
Battlestations: Show us your trading desks!
26 thanks
NexusFi site changelog and issues/problem reporting
25 thanks
The Program
17 thanks
  #3 (permalink)
 
gregid's Avatar
 gregid 
Wrocław, Poland
 
Experience: Intermediate
Platform: NinjaTrader, Racket
Trading: Ockham's razor
Posts: 650 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
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG, Kinetick
Trading: RTY
Posts: 682 since Jun 2009
Thanks Given: 756
Thanks Received: 787


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
 
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,731

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 Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:




Last Updated on August 27, 2012


© 2024 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 - Privacy Policy - Downloads - Top
no new posts