NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript Development Support > General Programming

General Programming General NinjaScript programming questions.

Reply
 
Thread Tools Display Modes
Old 03-07-2012, 11:49 AM   #1
ashwingu
Junior Member
 
Join Date: Jan 2012
Posts: 3
Thanks: 0
Thanked 0 times in 0 posts
Default Name of Indicator Input Parameter in Strategy Builder

I have a unique problem.

I have an Input Parameter named Length for my Indicator AshMA.

In the #region Properties of this indicator I have:

[GridCategory("Parameters")]
[Description("NumBars")]
[NinjaTrader.Gui.Design.DisplayName("NumBars")]
public int Length
{
get { return length; }
set { length = Math.Max(1, value);
}

So even though the parameter is called Length, I want it to show up as NumBars in the GUI.

The above code works perfectly for Indicator selection window. I can see Numbars as the name of the Input field.

However, when I bring up Strategy Builder, the name of the Input is length.

Is there anyway to force Strategy Builder to use the DisplayName ?

Also I have another Input variable called: mAType.

The Strategy Builder always displays it as: "M a Type". Is there any way to force the Gui Name ?
ashwingu is offline  
Reply With Quote
Old 03-07-2012, 12:05 PM   #2
NinjaTrader_Brett
NinjaTrader Customer Service
 
NinjaTrader_Brett's Avatar
 
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,498
Thanks: 109
Thanked 291 times in 280 posts
Default

Hello,

Thanks for the note.

Unfortunately there is not a GUI option for the strategy wizard.

-Brett
NinjaTrader_Brett 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
DataSeries as an input parameter to an Indicator mpugh Indicator Development 10 05-28-2011 03:27 AM
Plots under Parameter in Condition Builder dwt1020 General Programming 4 04-10-2009 08:01 AM
Input Parameter help for ADXVMA fy260498 Strategy Development 3 09-12-2008 12:40 AM
Color Input Parameter aslane Indicator Development 2 12-24-2007 01:49 PM
custom Dataseries as indicator input, or input to indi through underlying strategy Nathamus General Programming 3 08-30-2007 12:04 PM


All times are GMT -6. The time now is 11:05 PM.