PDA

View Full Version : General Settings


awuit
02-06-2006, 06:26 AM
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.

NinjaTrader_Dierk
02-06-2006, 10:34 AM
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.