Class InputParameterAttribute
Use this attribute to mark input parameters of your script. You will see them in the settings screen on adding
Namespace: TradingPlatform.BusinessLayer
Syntax
public class InputParameterAttribute : Attribute
Constructors
InputParameterAttribute(String, Int32, Double, Double, Double, Int32, Object[])
Declaration
public InputParameterAttribute(string name = "", int sortIndex = 0, double minimum = -2147483648, double maximum = 2147483647, double increment = 0.01, int decimalPlaces = 2, object[] variants = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | |
System.Int32 | sortIndex | |
System.Double | minimum | |
System.Double | maximum | |
System.Double | increment | |
System.Int32 | decimalPlaces | |
System.Object[] | variants |
Properties
DecimalPlaces
Decimal palces for numeric input parameters
Declaration
public int DecimalPlaces { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Increment
Increment value for numeric input parameters
Declaration
public double Increment { get; }
Property Value
Type | Description |
---|---|
System.Double |
Maximum
Maximal value for numeric input parameters
Declaration
public double Maximum { get; }
Property Value
Type | Description |
---|---|
System.Double |
Minimum
Minimal value for numeric input parameters
Declaration
public double Minimum { get; }
Property Value
Type | Description |
---|---|
System.Double |
Name
Displayed name of input parameter
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
SortIndex
Sort index for input paramter
Declaration
public int SortIndex { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Variants
List of predefined values
Declaration
public IComparable[] Variants { get; }
Property Value
Type | Description |
---|---|
System.IComparable[] |