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.
|