NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


Go Back   NinjaTrader Support Forum > NinjaScript Development Support > Indicator Development

Indicator Development Support for the development of custom indicators using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 02-06-2006, 06:26 AM   #1
awuit
 
Join Date: Mar 2005
Location: , ,
Posts: 7
Thanks: 0
Thanked 0 times in 0 posts
Post imported post

NT,

How to modify the General Settings of the indicator, onec you are in NinjaScript Editor.

Ex. You needed 3 Input Parameters and only enter 2 at setup, how to go back and add another Input Parameter.

Thank you.




awuit is offline  
Reply With Quote
Old 02-06-2006, 10:34 AM   #2
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Post imported post

Add this line to the "Variable" sections:
private int param3 = 1;

Add these lines to the "Properties" sections:

[Description("Enter parameter description here")]
[Category("Parameters")]
public int Param3
{
get { return param3; }
set { param3 = Math.Max(1, value); }
}

This creates a new parameter of type integer and defaults it to 1.
NinjaTrader_Dierk 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


All times are GMT -6. The time now is 01:57 AM.