/// <summary>
        ///     Creates an empty parameter.
        /// </summary>
        public IndicatorParam()
        {
            SlotNumber    = 0;
            IsDefined     = false;
            SlotType      = SlotTypes.NotDefined;
            IndicatorName = String.Empty;
            IndicatorType = TypeOfIndicator.Indicator;
            ExecutionTime = ExecutionTime.DuringTheBar;
            ListParam     = new ListParam[5];
            NumParam      = new NumericParam[6];
            CheckParam    = new CheckParam[2];

            for (int i = 0; i < 5; i++)
            {
                ListParam[i] = new ListParam();
            }

            for (int i = 0; i < 6; i++)
            {
                NumParam[i] = new NumericParam();
            }

            for (int i = 0; i < 2; i++)
            {
                CheckParam[i] = new CheckParam();
            }
        }
 /// <summary>
 ///     Returns a copy of the class.
 /// </summary>
 public CheckParam Clone()
 {
     var cparam = new CheckParam
         {
             Caption = Caption,
             Enabled = Enabled,
             Checked = Checked,
             ToolTip = ToolTip
         };
     return cparam;
 }
Exemplo n.º 3
0
        /// <summary>
        ///     Returns a copy of the class.
        /// </summary>
        public CheckParam Clone()
        {
            var cparam = new CheckParam
            {
                Caption = Caption,
                Enabled = Enabled,
                Checked = Checked,
                ToolTip = ToolTip
            };

            return(cparam);
        }
        /// <summary>
        ///     Creates an empty parameter.
        /// </summary>
        public IndicatorParam()
        {
            SlotNumber = 0;
            IsDefined = false;
            SlotType = SlotTypes.NotDefined;
            IndicatorName = String.Empty;
            IndicatorType = TypeOfIndicator.Indicator;
            ExecutionTime = ExecutionTime.DuringTheBar;
            ListParam = new ListParam[5];
            NumParam = new NumericParam[6];
            CheckParam = new CheckParam[2];

            for (int i = 0; i < 5; i++)
                ListParam[i] = new ListParam();

            for (int i = 0; i < 6; i++)
                NumParam[i] = new NumericParam();

            for (int i = 0; i < 2; i++)
                CheckParam[i] = new CheckParam();
        }